Skip to content

riadhriadh/comboboxReactNtive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

);

} }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published