UNPKG

airbridge-react-native-sdk

Version:

Airbridge SDK for React Native

14 lines (12 loc) 392 B
import { Platform, NativeModules } from 'react-native' import NativeLog from "react-native-native-log"; const { QANativeLog } = NativeModules export const qaLog = (message) => { if (Platform.OS === 'ios') { QANativeLog.logWithTag('AirbridgeQA', message) } else if (Platform.OS === 'android') { NativeLog.logWithTag('Airbridge', message) } else { console.log(message) } }