diff --git a/src/view/com/modals/CreateScene.tsx b/src/view/com/modals/CreateScene.tsx index 64c26a7b..0386370b 100644 --- a/src/view/com/modals/CreateScene.tsx +++ b/src/view/com/modals/CreateScene.tsx @@ -9,13 +9,14 @@ import { View, } from 'react-native' import LinearGradient from 'react-native-linear-gradient' +import {BottomSheetScrollView, BottomSheetTextInput} from '@gorhom/bottom-sheet' import {ErrorMessage} from '../util/ErrorMessage' import {useStores} from '../../../state' import {s, colors, gradients} from '../../lib/styles' import {makeValidHandle, createFullHandle} from '../../lib/strings' import {AppBskyActorCreateScene} from '../../../third-party/api/index' -export const snapPoints = ['70%'] +export const snapPoints = ['60%'] export function Component({}: {}) { const store = useStores() @@ -88,75 +89,82 @@ export function Component({}: {}) { } return ( - + Create a scene Scenes are invite-only groups which aggregate what's popular with members. - - - Scene Handle - setHandle(makeValidHandle(str))} - /> - - - Scene Display Name - - - - Scene Description - - - + + + + Scene Handle + setHandle(makeValidHandle(str))} + /> + + + Scene Display Name + + + + Scene Description + + {error !== '' && ( - - + + + + + + )} + {handle.length >= 2 && !isProcessing ? ( + + + Create Scene + + + ) : ( + + + {isProcessing ? ( + + ) : ( + Create Scene + )} + )} - {handle.length >= 2 && !isProcessing ? ( - - - Create Scene - - - ) : ( - - - {isProcessing ? ( - - ) : ( - Create Scene - )} - - - )} - + ) } const styles = StyleSheet.create({ + outer: { + flex: 1, + paddingTop: 20, + paddingBottom: 20, + }, title: { textAlign: 'center', fontWeight: 'bold', @@ -172,6 +180,7 @@ const styles = StyleSheet.create({ }, inner: { padding: 14, + height: 350, }, group: { marginBottom: 10, @@ -197,7 +206,7 @@ const styles = StyleSheet.create({ paddingHorizontal: 12, paddingTop: 10, fontSize: 16, - height: 100, + height: 70, textAlignVertical: 'top', }, errorContainer: {