getsocial-react-native-sdk
Version:
React Native wrapper for GetSocial iOS and Android SDK
11 lines (8 loc) • 309 B
JavaScript
/* eslint-disable max-len */
// @flow
import {DeviceEventEmitter, NativeEventEmitter, NativeModules, Platform} from 'react-native';
const {RNGetSocial} = NativeModules;
export const GetSocialEventEmitter = Platform.select({
android: DeviceEventEmitter,
ios: new NativeEventEmitter(RNGetSocial),
});