Skip to content

Commit e9760fc

Browse files
committed
Make example use local component.
1 parent 93a5e20 commit e9760fc

File tree

4 files changed

+420
-7
lines changed

4 files changed

+420
-7
lines changed

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,3 @@
66
.idea
77

88
npm-debug.log
9-
10-
example/ModalDropdown.js

components/ModalDropdown.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import React, {
1010
} from 'react';
1111

1212
import {
13-
NativeModules,
1413
StyleSheet,
1514
Dimensions,
1615
View,
@@ -71,8 +70,8 @@ export default class ModalDropdown extends Component {
7170

7271
this.state = {
7372
disabled: props.disabled,
74-
accessible: props.accessible !== false,
75-
loading: props.options == null,
73+
accessible: !!props.accessible,
74+
loading: props.options === null || props.options === undefined,
7675
showDropdown: false,
7776
buttonText: props.defaultValue,
7877
selectedIndex: props.defaultIndex

0 commit comments

Comments
 (0)