Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static openNativeFromNative(props, ev) {
const { slug, onAppSwitch } = props
if (ev) {
ev.preventDefault()
}
const appInfo = NATIVE_APP_INFOS[slug]
AppLinker.onAppSwitch(onAppSwitch)
startApp(appInfo).catch(err => {
console.error('AppLinker: Could not open native app', err)
})
}