Coder Social home page Coder Social logo

react-native-custom-radio-group's People

Contributors

ayushinigam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

react-native-custom-radio-group's Issues

Can we add the gradient options to `buttonContainerActiveStyle`

It would be great if we can pass an array for adding gradient to the background, this is the wrapper I created to use gradient as background for one of my pages.

const OnboardingWrapper = ({ children, item }) => { return typeof item.backgroundColor === 'object' ? ( <LinearGradient style={styles.slide} colors={item.backgroundColor} start={{ x: 0.8, y: 1 }} end={{ x: 0, y: 0 }}> {children} </LinearGradient> ) : ( <View style={{ ...styles.slide, backgroundColor: item.backgroundColor }}>{children}</View> ); };

Thanks

Number of Radio Buttons

I have 8 radio buttons in a radio group that comes in a single row how can i align them in two lines

Can this situation be achieved?

Thanks very much to the open source plug-in provided by the author, but I have a problem in the use process and I don't know how to solve it.

ideal:

image

reality:

image

code:

<RadioGroup
                    radioGroupList={radioGroupList}
                    initialValue = {'10'}


                    buttonContainerStyle = {{flex:1,margin: 10, borderWidth: 1, borderColor: Color.whiteE}}
                    buttonContainerActiveStyle = {{backgroundColor: Color.yellowFCE}}
                    onChange={(value) => this._selectMoney(value) }
                    ref={e => this.RadioGroup1 = e}
                />

                <RadioGroup
                    radioGroupList={radioGroupList2}
                    buttonContainerStyle = {{flex:1,margin: 10, borderWidth: 0}}
                    buttonContainerActiveStyle = {{backgroundColor: Color.yellowFCE}}
                    onChange={(value) => this._selectMoney(value) }
                    ref={e => this.RadioGroup2 = e}

                />

I want to implement the button in the first row or the second row of buttons to return the row of buttons to the initial state. What should I do? help me.

How to Handle the onchange prop?

Good day, thanks for this custom radio button, as it really help in the project I am currently working on. However, it’s unclear how you’re passing the value of the options and displaying it in a different tag, using the onchange property.
Can you please explain how I can achieve this?
I’m fairly new to react native

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.