1 | import { NativeModules } from 'react-native';
|
2 | const { ExponentFacebook } = NativeModules;
|
3 | export 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 |
|
\ | No newline at end of file |