<Button
onPress={() => isAuth?this.props.navigation.navigate('UserProfile'):this.props.navigation.navigate('Login')}
title="Личный кабинет"
/>
export default class TestScreen extends Component {
changeColor=()=>{
this.bridge.injectJavaScript('document.body.style.backgroundColor = "black";');
}
render() {
return (
<View >
<TouchableOpacity onPress={()=>this.changeColor()}>
<WebView
ref={(bridge)=>this.bridge=bridge}
javaScriptEnabled={true}
style={{backgroundColor:"black"}}
>
</TouchableOpacity>
</View>
);
}
}