Code Monkey home page Code Monkey logo

react-native-smart-picker's People

Contributors

gastonediaz avatar gavinthomas1192 avatar thepaulmcbride avatar

Stargazers

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

Watchers

 avatar  avatar

react-native-smart-picker's Issues

Readme needs updated

The example code in the readme doesn't work. It should be updated to show a working example.

Animated: `useNativeDriver` was not specified. This is a required option and must be explicitly set to `true` or `false`

Hi Guys,

Great work on the Picker it supports ioS and Andriod which is brilliant but i am having an issue as i am receiving this warning when i run my app on my actual device.

Animated: useNativeDriver was not specified. This is a required option and must be explicitly set to true or false

This link may help you understand

https://reactnative.dev/blog/2017/02/14/using-native-driver-for-animated#how-do-i-use-this-in-my-app

Adding expanded={true || false} doesn't affect toggle box

{data.length > 0 ? { data.map((ele)=> { return () }) } this.setState({expanded: !this.state.expanded})}> Done : }
        </View>
        
        </ScrollView>

When attempting to use a custom button to change SmartPicker's proptype expanded nothing happens. When manually inputting expanded={true} the picker still starts in the closed position.

Smart picker not working in iOS

I'm using react-native-smart-picker in iOS like exemplified in README.md, but not working for me. Please watch the record about picker. The picker did not select any value and always come back to the first option.

Record Screen: video

`label` prop doesn't accept an object type.

Hello,
We are using your component in our project, but need to style the label to match our design.
We did the following:

label={isIOS && selectedOption ? <Text style={styles.iosLabel}>{selectedOption.label}</Text> : ''}

but it requires to extend the propType validation to:

label: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),

to avoid a console error.

Same thing needs to be done for readt-native-togglebox.

Thanks!

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.