Add scene creator

This commit is contained in:
Paul Frazee 2022-11-09 15:57:49 -06:00
parent 93b64cf474
commit e7536289cb
18 changed files with 281 additions and 23 deletions

View file

@ -5,11 +5,12 @@ import BottomSheet from '@gorhom/bottom-sheet'
import {useStores} from '../../../state'
import {createCustomBackdrop} from '../util/BottomSheetCustomBackdrop'
import * as models from '../../../state/models/shell'
import * as models from '../../../state/models/shell-ui'
import * as LinkActionsModal from './LinkActions'
import * as SharePostModal from './SharePost.native'
import * as EditProfile from './EditProfile'
import * as CreateScene from './CreateScene'
const CLOSED_SNAPPOINTS = ['10%']
@ -57,6 +58,9 @@ export const Modal = observer(function Modal() {
{...(store.shell.activeModal as models.EditProfileModel)}
/>
)
} else if (store.shell.activeModal?.name === 'create-scene') {
snapPoints = CreateScene.snapPoints
element = <CreateScene.Component />
} else {
element = <View />
}