Ich habe gerade react-native für mehrere Tage gelernt.Nun stoße ich auf eine Frage zur NavigatorIOS-Komponente. Ich möchte wissen, ob es möglich ist, "Kind-Controller" von NavigatorIOS in reactive-native zu bekommen, genau wie in native objective-c (mit UINavigationController.viewControllers). Ich möchte die Referenz erhalten und einige Update-Methode aufrufen.Wie bekomme ich 'Kindercontroller' Referenz von NavigatorIOS in React-native?
_addNavigator: function (component, title) {
var data = null;
var temp = <NavigatorIOS
style={{ flex: 1 }}
barTintColor='#007AFF'
titleTextColor="#fff"
tintColor="#fff"
translucent={false}
initialRoute={{
component: component,
title: title,
passProps: {
data: data
}
}}/>;
componentArray.push(temp);
return temp;
}