question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Switch component crashes the app

See original GitHub issue

I have gone through these following points

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:closed
  • Created 5 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
the-yaducommented, Dec 19, 2018

@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.

1reaction
the-yaducommented, Dec 19, 2018

@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}

167 | accessibilityRole={props.accessibilityRole ?? ‘button’} | ^ 168 | onChange={this._handleChange} 169 | onResponderTerminationRequest={returnsFalse} 170 | onStartShouldSetResponder={returnsTrue}`

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found