react-native-nox-detector
Version:
React Native module to detect nox player
14 lines (11 loc) • 336 B
JavaScript
import { NativeModules, Platform } from 'react-native';
const { NoxDetector } = NativeModules;
export async function getNoxInfo() {
if (Platform.OS !== 'android') return { found: false };
try {
return await NoxDetector.getNoxInfo();
} catch (e) {
console.warn('NoxDetector error', e);
return { found: false };
}
}