Clip-sub / react-native-bottomsheet

True Cross-platform ActionSheet for Android and iOS
MIT License
92 stars 24 forks source link

showBottomSheetWithOptions crashes the app #2

Closed Shelf-A closed 7 years ago

Shelf-A commented 7 years ago

Using showBottomSheetWithOptions crashes the app. Tried the Example code:

 BottomSheet.showBottomSheetWithOptions({
          options: ['Option 1', 'Option 2', 'Option 3'],
          title: 'Demo Bottom Sheet',
          dark: true,
          cancelButtonIndex: 3,
        }, (value) => {
          alert(value);
 })

Using "react-native": "0.45.1" "react-native-bottomsheet": "^1.4.0",

Doko-Demo-Doa commented 7 years ago

Is this related to #1 ? I'm using it in my project and it works fine on both Android and iOS. Did you got crashes on iOS or Android?

Shelf-A commented 7 years ago

No it's not related to #1

For some reason, using title: 'Demo Bottom Sheet', crashes the app but if you change your title to anything other than 'Demo Bottom Sheet', it works fine. You can close this issue.