combobox-react-native

1.1.0 • Public • Published

required install react-native-vector-icons

required install react-native-vector-icons

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>

);

} }

Package Sidebar

Install

npm i combobox-react-native

Weekly Downloads

0

Version

1.1.0

License

ISC

Unpacked Size

44.4 kB

Total Files

9

Last publish

Collaborators

  • riadhfarhati