mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Docs - [React Native Expo user management guide](https://supabase.com/docs/guides/getting-started/tutorials/with-expo-react-native) ## What is the new behavior? Guide has been updated to be in line with #42269 - Removing `@rneui/themed` package and using native components. - Update guide screenshot. - Main stylesheet for the example. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Documentation - Updated Expo React Native tutorial with modernized component approach using React Native primitives and centralized styling patterns. - Simplified codebase examples with consistent formatting and improved maintainability. - Core functionality preserved with updated implementation patterns. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Chris Chinchilla <chris.ward@supabase.io> Co-authored-by: Chris Chinchilla <chris@chrischinchilla.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
71 lines
1.2 KiB
TypeScript
71 lines
1.2 KiB
TypeScript
import { StyleSheet } from 'react-native'
|
|
|
|
export const appStyles = StyleSheet.create({
|
|
container: {
|
|
marginTop: 40,
|
|
padding: 12,
|
|
},
|
|
verticallySpaced: {
|
|
paddingTop: 4,
|
|
paddingBottom: 4,
|
|
alignSelf: 'stretch',
|
|
},
|
|
mt20: {
|
|
marginTop: 20,
|
|
},
|
|
label: {
|
|
fontSize: 16,
|
|
fontWeight: '600',
|
|
color: '#86939e',
|
|
marginBottom: 6,
|
|
},
|
|
input: {
|
|
borderWidth: 1,
|
|
borderColor: '#86939e',
|
|
borderRadius: 4,
|
|
padding: 12,
|
|
fontSize: 16,
|
|
},
|
|
inputDisabled: {
|
|
backgroundColor: '#f2f2f2',
|
|
borderColor: '#d1d1d1',
|
|
color: '#9e9e9e',
|
|
},
|
|
button: {
|
|
backgroundColor: '#2089dc',
|
|
borderRadius: 4,
|
|
padding: 12,
|
|
alignItems: 'center',
|
|
},
|
|
buttonDisabled: {
|
|
opacity: 0.5,
|
|
},
|
|
buttonText: {
|
|
color: '#fff',
|
|
fontSize: 16,
|
|
fontWeight: '600',
|
|
},
|
|
avatarContainer: {
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
marginTop: 20,
|
|
},
|
|
avatar: {
|
|
borderRadius: 5,
|
|
overflow: 'hidden',
|
|
maxWidth: '100%',
|
|
marginBottom: 20,
|
|
},
|
|
image: {
|
|
objectFit: 'cover',
|
|
paddingTop: 0,
|
|
},
|
|
noImage: {
|
|
backgroundColor: '#333',
|
|
borderWidth: 1,
|
|
borderStyle: 'solid',
|
|
borderColor: 'rgb(200, 200, 200)',
|
|
borderRadius: 5,
|
|
},
|
|
})
|