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.

The scrollview breaks on iOS 10 when using RN-0.48

See original GitHub issue

Error:

Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[RCTCustomScrollView setContentInsetAdjustmentBehavior:]: unrecognized selector sent to instance 0x7ffab9891a00’

Reproduce:

Build your app by XCode9-GM, then run it on your iOS10 device or below version.

Env:

  • Device - iOS 10.3.1
  • XCode 9.0 (9A235)
  • react-native - 0.48.3

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
wannabeherocommented, Sep 18, 2017

The issue is in https://github.com/wix/react-native-navigation

You can fix it yourself. Just find RCCViewController.m and change this line to the following:

if ([view isKindOfClass:UIScrollView.class] && [view respondsToSelector:@selector(setContentInsetAdjustmentBehavior:)]) {
1reaction
gameboyVitocommented, Sep 25, 2017

I think the latest react-native-navigation@1.1.229 has merged my PR and addressed this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native's ScrollView Broken on iOS Physical Device
I have an issue on React Native's iOS ScrollView, it was broken after implementing GIF's while scrolling. It happened only on physical ...
Read more >
xcode 8/ iOS 10 Scroll view proble… | Apple Developer Forums
I am using auto resizing for screen adaptions. I need to solve that problem and submit to store asap. Please help me out....
Read more >
Scrolling interacts strangely with SafeAreaView on iPhone X
I am experiencing a similar problem using ScrollView nested within a SafeAreaView. It breaks my positioning on elements by reducing their width.
Read more >
Common bugs in React Native ScrollView and how to fix them
Today, I'll explain some common mistakes when using ScrollView in React Native and how to avoid them, plus a few tips and tricks...
Read more >
react-native-keyboard-aware-scroll-view - npm
A React Native ScrollView component that resizes when the keyboard appears.. Latest version: 0.9.5, last published: a year ago. Start using ...
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