Skip to content

Instantly share code, notes, and snippets.

View enaluz's full-sized avatar

Ethan Naluz enaluz

View GitHub Profile
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
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
import React from "react";
import { GlobalContextProvider } from "./GlobalContext";
import AppNavigator from "./AppNavigator";
import { NavigationContainer } from "@react-navigation/native";
const Root = () => (
<NavigationContainer>
<GlobalContextProvider>
<AppNavigator />
</GlobalContextProvider>