required install react-native-vector-icons
combobox react native required install react-native-vector-icons
required install react-native-vector-icons
react-native-vector-iconsnpm i react-native-vector-icons
pour installer : combobox-react-native
npm i combobox-react-native
List option
property | type | description |
---|---|---|
data | list | list example
[
|
title | string | name combobox |
styleItem | style css | modifier style Item |
itemText | style css | applique style sur text items |
Example code
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> );
} }