From 53442312a96e93be5969e3268b477b66e074ce31 Mon Sep 17 00:00:00 2001 From: Nigel Breslaw Date: Fri, 16 Feb 2024 21:19:34 +0100 Subject: [PATCH] Add safe area and scrollview (#394) --- native_gg/App.tsx | 92 ++++++++++++++++++++++++++--------------------- 1 file changed, 52 insertions(+), 40 deletions(-) diff --git a/native_gg/App.tsx b/native_gg/App.tsx index ed58107f0..0506b73a2 100644 --- a/native_gg/App.tsx +++ b/native_gg/App.tsx @@ -1,5 +1,5 @@ import { StatusBar } from "expo-status-bar"; -import { Button, StyleSheet, Text, View } from "react-native"; +import { Button, SafeAreaView, ScrollView, StyleSheet, Text, View } from "react-native"; import { Image } from "expo-image"; import { LinearGradient } from "expo-linear-gradient"; import { useEffect, useReducer, useRef } from "react"; @@ -38,65 +38,77 @@ export default function App() { }, []); return ( - + + - Guardian Ghost - - - - - - { - if (authServiceRef.current) { - authServiceRef.current.startAuth(); - } - }} - processURL={(url) => { - if (authServiceRef.current) { - authServiceRef.current.processURL(url); - } - }} - /> + + Guardian Ghost + + + + + + { + if (authServiceRef.current) { + authServiceRef.current.startAuth(); + } + }} + processURL={(url) => { + if (authServiceRef.current) { + authServiceRef.current.processURL(url); + } + }} + /> - Membership ID: - {state.currentAccount?.supplementalDisplayName} + Membership ID: + {state.currentAccount?.supplementalDisplayName} - - Authenticated: {state.authenticated ? "True" : "False"} - - -