react-native icon indicating copy to clipboard operation
react-native copied to clipboard

[REFS] Not Work

Open antoxi4 opened this issue 10 years ago • 0 comments

I try set refs to component and when it calling RN return to me undefined. What Happend?

My code.

render() {
    console.log(this.refs['testRef']);
    return (
      <View style={styles.mainView}>
      <Button ref={'testRef'}/>
      </View>
    );
  }

antoxi4 avatar Feb 22 '16 08:02 antoxi4