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

Added passing down of props from Navigator to the components

Open jschfflr opened this issue 6 years ago • 0 comments

Added passing down of props to allow loading things once for every screen of the app.

const Navigator = SwipeNavigator({
   ...
});

export default class App extends Component {
  componentDidMount() {
    this.setState({
      user: ...
    })
  }

  render() {
    return (<Navigator user={this.state.user} />);
  }
}

jschfflr avatar Sep 21 '18 18:09 jschfflr