viniciuswovst / react-native-picker-checkbox Goto Github PK
View Code? Open in Web Editor NEWA simple picker component with checkbox list for React-Native.
License: Apache License 2.0
A simple picker component with checkbox list for React-Native.
License: Apache License 2.0
Hello,
because of TouchableNativeFeedback, that doesn't work on iOs.
Maybe you need to add : TouchableHighlight
Hey,
I download the example and it's empty project without any example.
in addition when I tried to copy the example into doc it's not working.
the error is
Invariant Violation: Element type is invalid: expected a string for built-in components or a class/function (for composite components) but got undefined.
code
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, {Component} from 'react';
import {Platform, StyleSheet, Text, View} from 'react-native';
import PickerCheckBox from 'react-native-picker-checkbox';
class App extends Component{
constructor(props){
super(props)
this.items = [
{
itemKey:1,
itemDescription:'Item 1'
},
{
itemKey:2,
itemDescription:'Item 2'
},
{
itemKey:3,
itemDescription:'Item 3'
}
];
}
handleConfirm(pItems){
console.log('pItems =>', pItems);
}
render() {
return (
<View style={{flex:1}}>
<PickerCheckBox
data={this.items}
headerComponent={<Text style={{fontSize:25}} >items</Text>}
OnConfirm={(pItems) => this.handleConfirm(pItems)}
ConfirmButtonTitle='OK'
DescriptionField='itemDescription'
KeyField='itemKey'
placeholder='select some items'
arrowColor='#FFD740'
arrowSize={10}
placeholderSelectedItems ='$count selected item(s)'
/>
</View>
)
}
}
export default App;
When I use checkedItems and try to put a new item, an error appears - tmp.push is not a function
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.