zubairpaizer / react-native-searchable-dropdown

Searchable Dropdown
148 stars 98 forks source link

Accept 0 as defaultIndex #22

Open Osuka42g opened 5 years ago

Osuka42g commented 5 years ago

0 will cast as false in a comparison statement. This will check if the provided prop is a number, so it will accept 0 as defaultIndex.