[Sheets] [Pt. 5] Update types and props (#5563)
This commit is contained in:
@@ -33,7 +33,7 @@ export function Outer({
|
||||
children,
|
||||
control,
|
||||
onClose,
|
||||
nativeOptions: _nativeOptions, // @TODO DIALOG REFACTOR
|
||||
nativeOptions,
|
||||
testID,
|
||||
}: React.PropsWithChildren<DialogOuterProps>) {
|
||||
const t = useTheme()
|
||||
@@ -41,7 +41,6 @@ export function Outer({
|
||||
const insets = useSafeAreaInsets()
|
||||
const closeCallbacks = React.useRef<(() => void)[]>([])
|
||||
const {setDialogIsOpen} = useDialogStateControlContext()
|
||||
// @TODO DIALOG REFACTOR - can i get rid of this? seems pointless tbh
|
||||
|
||||
const callQueuedCallbacks = React.useCallback(() => {
|
||||
for (const cb of closeCallbacks.current) {
|
||||
@@ -103,7 +102,8 @@ export function Outer({
|
||||
onCloseAnimationComplete()
|
||||
}
|
||||
}}
|
||||
cornerRadius={20}>
|
||||
cornerRadius={20}
|
||||
{...nativeOptions}>
|
||||
<View testID={testID} style={[t.atoms.bg]}>
|
||||
{children}
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user