shimohq / react-native-prompt-android

A polyfill library for Alert.prompt on Android platform, working both on Android and iOS platform.
MIT License
129 stars 74 forks source link

[iOS] Removes deprecated parameter + Fix app crashing #3

Closed brunolemos closed 7 years ago

brunolemos commented 7 years ago

The options parameter is currently required by this lib because it's doing options.type but options is undefined by default, so the app crashes. Passing a {} is the current workaround.

This parameter was deprecated so it makes sense to just remove it.

pedro commented 6 years ago

This was reverted by accident I think: https://github.com/shimohq/react-native-prompt-android/commit/9746650c6695933e530a3b52660ddbf262d17281#diff-7b583be97a13433ca4d46b2cd6d5f613