UNPKG

542 BJavaScriptView Raw
1import { NativeModules } from 'react-native';
2const { ExponentFacebook } = NativeModules;
3export async function logInWithReadPermissionsAsync(appId, options) {
4 if (typeof appId !== 'string') {
5 console.warn(`logInWithReadPermissionsAsync: parameter 'appId' must be a string, was '${typeof appId}''.`);
6 appId = String(appId);
7 }
8 if (!options || typeof options !== 'object') {
9 options = {};
10 }
11 return ExponentFacebook.logInWithReadPermissionsAsync(appId, options);
12}
13//# sourceMappingURL=Facebook.js.map
\No newline at end of file