This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function fromObject<T extends jspb.Message, U>(c: new () => T, obj: U): T { | |
const instance = new c(); | |
Object.keys(obj) | |
.forEach(key => { | |
const setterName = makeSetterFuncName(key); | |
(instance as any)[setterName] = (obj as any)[key]; | |
}); | |
return instance; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import * as GoogleWebAuth from 'expo-auth-session/providers/google'; | |
import * as GoogleAppAuth from "expo-google-app-auth"; | |
import * as WebBrowser from 'expo-web-browser'; | |
import * as AppAuth from 'expo-app-auth'; | |
import { Platform } from 'react-native'; | |
import Constants, {AppOwnership} from 'expo-constants'; | |
// Call this function once in your Component which handles the Google authentication | |
// flow; typically done outside of the component decleration (ie: just after your |
OlderNewer