combobox-react-native
v1.1.0
Published
combobox react native
Downloads
7
Maintainers
Readme
npm i react-native-vector-icons
{ "id": 1, "name": "data1" },
{ "id": 2, "name": "data2" },
{ "id": 3, "name": "data3" },
{ "id": 4, "name": "data4" },
{ "id": 5, "name": "data5" },
]
import React, {Component} from 'react'; import {Platform, StyleSheet,View} from 'react-native'; import Combobox from 'combobox-react-native' import data from './data' const instructions = Platform.select({ ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu', android: 'Double tap R on your keyboard to reload,\n' + 'Shake or press menu button for dev menu', });
export default class App extends Component { render() { return ( <View style={{ flex: 1, marginTop: 10, justifyContent: "center", alignItems: "center" }} > <Combobox data={data}title='hello' />
</View>
);
} }