Skip to content
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

iOS release build crashes: null is not an object (evaluating 'this._component.getScrollableNode') #5

Open
phil-andrews opened this issue Dec 28, 2017 · 5 comments

Comments

@phil-andrews
Copy link

phil-andrews commented Dec 28, 2017

I narrowed this crash in a production iOS app down to this library. I believe it has to do with the implementation of Input instead of using a TextInput though I'm not 100% sure about that.

You can find the whole, ongoing thread of this error at RN Issue #10635. Many of the cases have to do with Touchable variety buttons not wrapping children in a View.

Update:
I can confirm that this is the case for iOS and Android -

"react": "16.0.0-alpha.12"
"react-native": "0.47.2"
"react-native-autofocus": "0.0.6"
@zackify
Copy link
Owner

zackify commented Dec 28, 2017

Not really sure what you want me to do here, all the component does is pass some props through to a normal textinput https://github.com/zackify/react-native-autofocus/blob/master/text-input.js

@phil-andrews
Copy link
Author

phil-andrews commented Dec 29, 2017

I'm not sure what the solution is but it can't be used in production so I had to post an issue.

@zackify
Copy link
Owner

zackify commented Dec 29, 2017 via email

@jan-happy
Copy link

+1

@zackify
Copy link
Owner

zackify commented Jan 29, 2018

On the latest version of React Native,

import React from 'react';
import { Form, TextInput } from 'react-native-autofocus';
import { StyleSheet, Text, View } from 'react-native';

export default class App extends React.Component {
  render() {
    return (
      <View style={styles.container}>
        <Form>
          <TextInput placeholder="test" />
          <TextInput placeholder="test2" />
        </Form>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
});

Works just fine:
screen shot 2018-01-29 at 9 46 40 am

maybe a version of RN in between broke it, but appears to be fine now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants