It also runs slowly while navigating forward to a camera screen before i do this:
componentDidMount() {
super.componentDidMount();
// 延迟处理
InteractionManager.runAfterInteractions(() => {
this.setState({
created: true
});
});
}
render() {
return <View style={PublicStyles.screenView}>
{this.state.created ? <RNCamera/> : null}
</View>
}
Then, what should i do to solve the problem that happen while navigating back?