This file contains 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
command -v sw_vers && sw_vers) | |
/usr/bin/sw_vers | |
ProductName: macOS | |
ProductVersion: 11.0 | |
BuildVersion: 20A5343i | |
command -v uname && uname -a) | |
/usr/bin/uname | |
Darwin Ethans-MBP-2 20.0.0 Darwin Kernel Version 20.0.0: Thu Jul 30 22:49:28 PDT 2020; root:xnu-7195.0.0.141.5~1/RELEASE_X86_64 x86_64 |
This file contains 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
const openTakePhoto = async () => { | |
onCloseUploadImage() | |
try { | |
const image = await ImagePicker.openCamera(imageUploadOptions) as ImagePickerResult; | |
if (!image) return showBanner({ message: "Image upload failed. Please try again.", type: "danger" }) | |
setState({ | |
...state, | |
avatar: image.path, | |
fileType: image.mime |
This file contains 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 React from "react"; | |
import { GlobalContextProvider } from "./GlobalContext"; | |
import AppNavigator from "./AppNavigator"; | |
import { NavigationContainer } from "@react-navigation/native"; | |
const Root = () => ( | |
<NavigationContainer> | |
<GlobalContextProvider> | |
<AppNavigator /> | |
</GlobalContextProvider> |