2.1.2 • Published 4 years ago
react-native-select-screen-rn v2.1.2
react-native-select-screen-rn
Select Screen
Installation
npm install react-native-select-screen-rn
Usage
import Select from 'react-native-select-screen-rn';
export default function App() {
const ITEMS = [
{ id: 1, label: 'Element 1' },
{ id: 2, label: 'Element 2' },
{ id: 3, label: 'Element 3' },
{ id: 4, label: 'Element 4' },
{ id: 5, label: 'Element 5' },
];
const [state, setState] = React.useState({});
return (
<View style={styles.container}>
<View style={styles.container}>
<Select
options={{
searchStyle: {
iconSearch: '#f00',
border: {
color: '#f00',
width: '5px',
positionBorder: 'bottom',
borderRadius: '0px',
},
colorText: '#fff',
},
selectBoxStyle: {
angleDown: '#ccc',
border: {
color: '#f00',
width: '5px',
positionBorder: 'bottom',
borderRadius: '0px',
},
},
buttonItem: {
colorText: '#000',
itemLabelColor: '#fff',
border: {
color: '#f00',
width: '5px',
positionBorder: 'bottom',
borderRadius: '0px',
},
},
selectBoxTextColor: '#f00',
backgroundContainer: '#000',
selectBoxText: 'Select Value',
searchTextPlaceholder: 'Search Here',
selectBoxDisabled: false
}}
items={ITEMS}
onChange={setState}
selected={state.id}
/>
</View>
);
}
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
2.1.2
4 years ago
2.1.1
4 years ago
2.1.0
4 years ago
2.0.11
4 years ago
2.0.10
4 years ago
2.0.9
4 years ago
2.0.5
4 years ago
2.0.4
4 years ago
2.0.7
4 years ago
2.0.6
4 years ago
2.0.8
4 years ago
1.0.9
4 years ago
2.0.3
4 years ago
2.0.2
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago