-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react-native-paper-dropdown crashes expo app on android #115
Comments
hi @nibble0101 can you share the react-native-paper version you are using so i can try to reproduce this. |
Sure! I'm using "dependencies": {
"@expo/vector-icons": "^14.0.2",
"expo": "~51.0.31",
"expo-checkbox": "~3.0.0",
"expo-constants": "~16.0.2",
"expo-status-bar": "~1.12.1",
"react": "18.2.0",
"react-native": "0.74.5",
"react-native-paper": "^5.12.5",
"react-native-paper-dropdown": "^2.3.1",
"react-native-safe-area-context": "4.10.5",
"expo-linking": "~6.3.1",
"expo-dev-client": "~4.0.25"
}, |
yes, same here development local build works correctly, while |
I am experiencing the same issue. In LogCat I can see the following exception.
And just to be very clear I do have a theme provider at the top of my app. I also have the same versions as other people above in this post. |
Are you guys wrapping the code with both providers? `
` |
I'm wrapping only in |
same problem for me too, and I'm wrapping with both PaperProvider and ThemeProvider. |
Seems like the env: {
production: {
plugins: ["react-native-paper/babel"],
},
}, I think it's related to this issue here. Removing these lines increases the bundle size by a lot. |
@nibble0101 can you check @jhoffi comment
|
Same problem here on Android, removing react-native-paper/babel works normally |
Same problem with iOS. Removing react-native-paper/babel is not a fix I can afford as it increases the bundle size. |
I can confirm this is still an issue, removing the babel plugin isn't really an option. |
Removed |
I started tinkering with React Native Paper recently before stumbling on this package. This package works fine in development. The android project even builds successfully using EAS. Unfortunately, clicking the dropdown crashes the app entirely both on a physical device and emulator. I'm not sure whether the problem is with expo or this project.
You can see it works fine here in development. To reproduce the problem, perhaps follow this guide to build the apk and install it on an emulator or a physical android device.
The text was updated successfully, but these errors were encountered: