Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add safe area view to profile error screen (#7134)

authored by

Samuel Newman and committed by
GitHub
1a160df3 de97c07c

+19 -14
+19 -14
src/view/screens/Profile.tsx
··· 1 1 import React, {useCallback, useMemo} from 'react' 2 2 import {StyleSheet} from 'react-native' 3 + import {SafeAreaView} from 'react-native-safe-area-context' 3 4 import { 4 5 AppBskyActorDefs, 5 6 AppBskyGraphGetActorStarterPacks, ··· 122 123 } 123 124 if (resolveError || profileError) { 124 125 return ( 125 - <ErrorScreen 126 - testID="profileErrorScreen" 127 - title={profileError ? _(msg`Not Found`) : _(msg`Oops!`)} 128 - message={cleanError(resolveError || profileError)} 129 - onPressTryAgain={onPressTryAgain} 130 - showHeader 131 - /> 126 + <SafeAreaView style={[a.flex_1]}> 127 + <ErrorScreen 128 + testID="profileErrorScreen" 129 + title={profileError ? _(msg`Not Found`) : _(msg`Oops!`)} 130 + message={cleanError(resolveError || profileError)} 131 + onPressTryAgain={onPressTryAgain} 132 + showHeader 133 + /> 134 + </SafeAreaView> 132 135 ) 133 136 } 134 137 if (profile && moderationOpts) { ··· 144 147 } 145 148 // should never happen 146 149 return ( 147 - <ErrorScreen 148 - testID="profileErrorScreen" 149 - title="Oops!" 150 - message="Something went wrong and we're not sure what." 151 - onPressTryAgain={onPressTryAgain} 152 - showHeader 153 - /> 150 + <SafeAreaView style={[a.flex_1]}> 151 + <ErrorScreen 152 + testID="profileErrorScreen" 153 + title="Oops!" 154 + message="Something went wrong and we're not sure what." 155 + onPressTryAgain={onPressTryAgain} 156 + showHeader 157 + /> 158 + </SafeAreaView> 154 159 ) 155 160 } 156 161