Hey! đ
I was wondering if there is something Iâm missing here or why I canât seem to use my bottom sheet when using observables.
The âpressed value beforeâ console log updates but it still doesnât trigger the animation for my bottom sheet.
I am using the Sheet from Tamagui.
` function SheetDemo() {
const state = useObservable({ sheetOpen: false, position: 0 })
const { sheetOpen, position } = state
console.log(âsheetOpen: â, sheetOpen.get())
const toast = useToastController()
const handlePress = () => {
console.log(âpressed value before: â, sheetOpen.get())
sheetOpen.set(true)
}
return (
<>
<Button onPress={() => handlePress()} space=â$2â>
Bottom Sheet
</Button>
<Sheet
modal
open={sheetOpen.get()}
onOpenChange={sheetOpen.set}
snapPoints={[80]}
position={position.get()}
onPositionChange={position.set}
dismissOnSnapToBottom
>
<Sheet.Overlay />
<Sheet.Frame ai=âcenterâ jc=âcenterâ>
<Sheet.Handle />
<Button
size=â$6â
circular
icon={ChevronDown}
onPress={() => {
sheetOpen.set(false)
const isExpoGo = Constants.appOwnership === âexpoâ
if (!isExpoGo) {
toast.show(âSheet closed!â, {
message: âJust showing how toast worksâŚâ,
})
}
}}
/>
</Sheet.Frame>
</Sheet>
</>
)
`
Another question I have is if I am required to use a custom dev client in order to use legend-state with Expo managed workflow?