Switch component crashes the app
See original GitHub issueI have gone through these following points
- Check latest documentation: https://docs.nativebase.io/
- Check for existing open/closed issues for a possible duplicate before creating a new issue: https://github.com/GeekyAnts/NativeBase/issues
- Use the latest NativeBase release: https://github.com/GeekyAnts/NativeBase/releases
- Check examples from NativeBase KitchenSink https://github.com/GeekyAnts/NativeBase-KitchenSink
- For discussion purpose make use of NativeBase Slack: http://slack.nativebase.io/
- For queries related to theme, check Theme Variables from Docs and live NativeBase Theme Editor http://nativebase.io/customizer/
Issue Description
node, npm, react-native, react and native-base version, expo version if used, xcode version
node : v10.0.0 npm : 6.4.1 react : 16.4.2 react-native:0.56.0
Expected behaviour
Upon using the switch component inside list component, the app should not crash
Actual behaviour
Upon using the switch component inside list component, the app crashes without any warn info in debugger
Steps to reproduce
Is the bug present in both iOS and Android or in any one of them?
Only tested android
Any other additional info which would help us debug the issue quicker.
I recently updated alot of libraries, This has happened after that.
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Crash app with android 11, Switch component - Bugs
i made an app wich work well on android 7. Now, it is on an oppo nero 6 with android 11 and crash...
Read more >react-native switch crashes on Android - Stack Overflow
I am trying to use a switch in react-native (0.63.4). ... but on Android I get an error when I call the component...
Read more >interface component: Switch => App Crash - Google Groups
When I delete all the Switches then the app didn't crash. So my question is; are there any known issues with the new...
Read more >2549082 - client crashes when segmented/switch control clicked
The Agentry client built from SAP Mobile Platform SDK is crashing when the device user taps on the components built using OpenUI segmented...
Read more >Top 6 Ways to Fix Discord App Crashes on Android
Although the feature comes pre-enabled in the app, if Discord is constantly crashing, you can turn off GIF autoplay by following the steps...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@suvenduchhatoi By following the exact steps… I got this error. https://github.com/facebook/react-native/issues/4968
I have fallen back to v56.0 It fails to render the switch but the remaining app works fine. To continue the development I have to roll back.
@suvenduchhatoi It didnt… I just installed v57.1 and removed node_module folder Its crashing with an issue saying
`error: bundling failed: SyntaxError: /Users/narayan/Projects/manage_my_rides_mobile/node_modules/react-native/node_modules/react-native/Libraries/Components/Switch/Switch.js: Support for the experimental syntax ‘nullishCoalescingOperator’ isn’t currently enabled (167:52):
165 | {…props} 166 | {…platformProps}