Home React-Native Picker wheel for Views
Reply: 0

React-Native Picker wheel for Views

user1136 Published in April 22, 2018, 10:06 pm

Like the title says I would like to create something like the Picker but instead of scrolling between text I would like to be able to scroll between cards that are View components. Is there a way to do this with the built in Picker or is there a npm packet somewhere which achieve this effect?

My code with Picker that is not working and only displaying the label

            style={{ height: 250, width: "100%",}}
            onValueChange={(itemValue, itemIndex) => this.setState({language: itemValue})}>
            <Picker.Item label="Java" value="java">
                    <Text>HELLO THERE GENERAL KENOBI</Text>
            <Picker.Item label="JavaScript" value="js" />

This is somewhat the effect I would like to achieve, being able to scroll between cards

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.304663 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO