We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb3808c commit e4ca97dCopy full SHA for e4ca97d
index.js
@@ -21,6 +21,12 @@ export default class ModalPicker extends Component {
21
};
22
}
23
24
+ componentWillReceiveProps( nextProps ) {
25
+ this.setState({
26
+ dataSource: this.state.dataSource.cloneWithRows( nextProps.data )
27
+ });
28
+ }
29
+
30
setModalVisible(visible) {
31
this.setState({ modalVisible: visible });
32
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "react-native-simple-modal-picker",
3
- "version": "0.1.0",
+ "version": "0.1.1",
4
"description": "Simple Picker/DropDown/Chooser/Selector for React Native",
5
"main": "index.js",
6
"scripts": {
0 commit comments