react-native-gigya-sdk
Version:
SAP CDC/Gigya SDK for your React Native applications
19 lines (15 loc) • 427 B
text/typescript
import { NativeModules } from 'react-native'
const { GigyaSdk } = NativeModules
import handleSdkCall from '../internals/handleSdkCall'
export default function (): Promise<boolean> {
return new Promise(async (resolve, reject) => {
try {
const response = await handleSdkCall<boolean>(GigyaSdk.isLoggedIn(), {
noParsing: true,
})
resolve(response)
} catch (e) {
reject(e)
}
})
}