Rendre une UIView sous React Native
Bonjour,
Je cherche à "rendre" une UIView dans une application React Native.
J'ai un module React que j'ai crée avec un méthode qui initialise une UIView
Code:
1 2 3 4
| RCT_EXPORT_METHOD(initAugmentWithClientId: (NSString *)clientId andSecret:(NSString *)clientSecret) {
[self.ARView setAugmentPlayer:[[UIView alloc] init]];
} |
Je voudrais self.ARView dans mon application (la ou se trouve la balise view) :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| class mobileApp extends Component {
constructor(props){
super(props);
var augment = NativeModules.AugmentPlayer;
augment.initAugmentWithClientId('client id 123456', 'client secret');
}
render() {
return (
<View style={{height:100, width:100, backgroundColor:'powderblue'}}>
</View>
);
}
} |
Comment se passe le bridge de la vue ?
Merci d'avance