fix jest
This commit is contained in:
@@ -96,6 +96,11 @@ jest.mock('expo-modules-core', () => ({
|
|||||||
getIsReducedMotionEnabled: () => false,
|
getIsReducedMotionEnabled: () => false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (moduleName === 'BottomSheet') {
|
||||||
|
return {
|
||||||
|
dismissAll: () => {},
|
||||||
|
}
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
requireNativeViewManager: jest.fn().mockImplementation(moduleName => {
|
requireNativeViewManager: jest.fn().mockImplementation(moduleName => {
|
||||||
return () => null
|
return () => null
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
import React, {useImperativeHandle} from 'react'
|
import React, {useImperativeHandle} from 'react'
|
||||||
import {StyleProp, TextInput, View, ViewStyle} from 'react-native'
|
import {StyleProp, View, ViewStyle} from 'react-native'
|
||||||
import {GestureHandlerRootView, ScrollView} from 'react-native-gesture-handler'
|
import {
|
||||||
|
GestureHandlerRootView,
|
||||||
|
ScrollView,
|
||||||
|
TextInput as RNGHTextInput,
|
||||||
|
} from 'react-native-gesture-handler'
|
||||||
import {KeyboardAwareScrollView} from 'react-native-keyboard-controller'
|
import {KeyboardAwareScrollView} from 'react-native-keyboard-controller'
|
||||||
import {useSafeAreaInsets} from 'react-native-safe-area-context'
|
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/types'
|
||||||
export * from '#/components/Dialog/utils'
|
export * from '#/components/Dialog/utils'
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
export const Input = createInput(TextInput)
|
export const Input = createInput(RNGHTextInput)
|
||||||
|
|
||||||
export function Outer({
|
export function Outer({
|
||||||
children,
|
children,
|
||||||
|
|||||||
Reference in New Issue
Block a user