ура

я есть реквизиты, которые загружаются с сервера на первом экране. Я хочу передать их остальным экранам вкладок. Однако я не нашел ни одного примера в Интернете. Я знаю о screenProps, но не знаю, как его настроить. Все методы, которые я попробовал, привели к ошибкам.

const EProj = TabNavigator({
  Home: { screen: HomeScreen },
  Map: { screen: MapG },
  Login: { screen: Login },
  Profile: { screen: Profile },
}, {
  tabBarPosition: 'bottom',
  animationEnabled: true,
  tabBarOptions: {
    activeTintColor: '#1abc9c',
  },
});

Это моя настройка экрана. Где я должен разместить screenProps?

<EProj
  screenProps={cats}
/>

Любые хорошие примеры, как настроить это было бы полезно. Заранее спасибо.

Настройка HomeScreen:

class HomeScreen extends React.Component {
  static navigationOptions = {
    tabBarLabel: 'Home',
  };

...

  componentWillMount(){
    console.log("Starting to load assets from server!");
    this.onLoadCats(); /*starts asset loading*/
  }

  render() {
    return (
      <View style={styles.container}>

        <Text>Welcome to alpha 1.17 This is hard system test.</Text>
        <AssetsLoad catsL={this.state.catsL} />
      </View>
    );
  }
}

Ответы на вопрос(1)

Ваш ответ на вопрос