This commit is contained in:
Hailey
2024-10-02 23:11:27 -07:00
parent 1b7e66f700
commit 5e41b503ad
2 changed files with 12 additions and 3 deletions
+5
View File
@@ -96,6 +96,11 @@ jest.mock('expo-modules-core', () => ({
getIsReducedMotionEnabled: () => false,
}
}
if (moduleName === 'BottomSheet') {
return {
dismissAll: () => {},
}
}
}),
requireNativeViewManager: jest.fn().mockImplementation(moduleName => {
return () => null
+7 -3
View File
@@ -1,6 +1,10 @@
import React, {useImperativeHandle} from 'react'
import {StyleProp, TextInput, View, ViewStyle} from 'react-native'
import {GestureHandlerRootView, ScrollView} from 'react-native-gesture-handler'
import {StyleProp, View, ViewStyle} from 'react-native'
import {
GestureHandlerRootView,
ScrollView,
TextInput as RNGHTextInput,
} from 'react-native-gesture-handler'
import {KeyboardAwareScrollView} from 'react-native-keyboard-controller'
import {useSafeAreaInsets} from 'react-native-safe-area-context'
@@ -23,7 +27,7 @@ export {useDialogContext, useDialogControl} from '#/components/Dialog/context'
export * from '#/components/Dialog/types'
export * from '#/components/Dialog/utils'
// @ts-ignore
export const Input = createInput(TextInput)
export const Input = createInput(RNGHTextInput)
export function Outer({
children,