react-native-action-sheet icon indicating copy to clipboard operation
react-native-action-sheet copied to clipboard

Action sheet for android not working

Open tring-gowrishankaran opened this issue 5 years ago • 4 comments

tring-gowrishankaran avatar Mar 21 '19 12:03 tring-gowrishankaran

Can you provide an error ?

yfuks avatar Mar 21 '19 14:03 yfuks

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.

ConstanzaCurzio avatar Apr 05 '19 20:04 ConstanzaCurzio

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

jamesone avatar Jun 26 '19 03:06 jamesone

Can you provide more informations ? You should probably create a new issue more specific. That could help with tracking

yfuks avatar Jun 26 '19 08:06 yfuks