Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

combobox-react-native

riadhriadh56ISC1.1.0

combobox react native

react, combobox, react, native, npm, react-native, combobox-react-native

readme

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> </head> <body>
combobox react native



required install react-native-vector-icons

react-native-vector-icons

npm i react-native-vector-icons


pour installer : combobox-react-native

npm i combobox-react-native

List option

property type description
data list list example [
{ "id": 1, "name": "data1" },
{ "id": 2, "name": "data2" },
{ "id": 3, "name": "data3" },
{ "id": 4, "name": "data4" },
{ "id": 5, "name": "data5" },
]
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>

);

} }

</body> </html>