react-native-action-sheet
react-native-action-sheet copied to clipboard
Action sheet for android not working
Can you provide an error ?
I had the same issue. Resolved adding
// file: android/app/src/main/java/com/<...>/MainApplication.java
...
import com.actionsheet.ActionSheetPackage; // <-- add this import
public class MainApplication extends Application implements ReactApplication {
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new ActionSheetPackage() // <-- add this line
);
}
...
}
like it says in the instructions. It seems like the react-native link react-native-action-sheet
command did everything but that.
Just adding this here - I found that this package throws an error if I use the RN version 0.59.4-0.59.9
(tested on these versions and when I tried to build android it failed). This package does however work on 0.59.3
Can you provide more informations ? You should probably create a new issue more specific. That could help with tracking