Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(props) {
super(props);
dotnetify.connectionStateHandler = (state, ex) => {
this.setState({ connectionStatus: state == 'connected' ? null : state });
if (state == 'error') Alert.alert('Connection Error', ex.message, [ { text: 'OK' } ], { cancelable: false });
};
}