Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
useEffect(() => {
console.warn('They say it is registered. Is it?');
OTA.addListener(event => {
Alert.alert('Event: ', `${JSON.stringify(event)}`);
});
}, []);