File tree Expand file tree Collapse file tree
packages/jest-preset/jest/mocks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import typeof {ActivityIndicator as TActivityIndicator} from 'react-native';
1414const mockComponent =
1515 jest . requireActual < TmockComponent > ( '../mockComponent' ) . default ;
1616
17+ // $FlowFixMe[incompatible-type]
1718const ActivityIndicator = mockComponent (
1819 'react-native/Libraries/Components/ActivityIndicator/ActivityIndicator' ,
1920 null , // instanceMethods
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import typeof {Image as TImage} from 'react-native';
1414const mockComponent =
1515 jest . requireActual < TmockComponent > ( '../mockComponent' ) . default ;
1616
17+ // $FlowFixMe[incompatible-type]
1718const Image = mockComponent (
1819 'react-native/Libraries/Image/Image' ,
1920 null , // instanceMethods
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ const mockComponent =
1616
1717type TModal = component ( ...ModalProps ) ;
1818
19+ // $FlowFixMe[incompatible-type]
1920const BaseComponent = mockComponent (
2021 'react-native/Libraries/Modal/Modal' ,
2122 null , // instanceMethods
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ const MockNativeMethods = jest.requireActual<TMockNativeMethods>(
2727
2828const RCTScrollView = requireNativeComponent < ScrollViewProps > ( 'RCTScrollView' ) ;
2929
30+ // $FlowFixMe[incompatible-type]
3031const BaseComponent = mockComponent (
3132 'react-native/Libraries/Components/ScrollView/ScrollView' ,
3233 {
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ const MockNativeMethods = jest.requireActual<TMockNativeMethods>(
1818 '../MockNativeMethods' ,
1919) . default ;
2020
21+ // $FlowFixMe[incompatible-type]
2122const Text = mockComponent (
2223 'react-native/Libraries/Text/Text' ,
2324 MockNativeMethods , // instanceMethods
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ const MockNativeMethods = jest.requireActual<TMockNativeMethods>(
1818 '../MockNativeMethods' ,
1919) . default ;
2020
21+ // $FlowFixMe[incompatible-type]
2122const TextInput = mockComponent (
2223 'react-native/Libraries/Components/TextInput/TextInput' ,
2324 {
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ const MockNativeMethods = jest.requireActual<TMockNativeMethods>(
1818 '../MockNativeMethods' ,
1919) . default ;
2020
21+ // $FlowFixMe[incompatible-type]
2122const View = mockComponent (
2223 'react-native/Libraries/Components/View/View' ,
2324 MockNativeMethods , // instanceMethods
You can’t perform that action at this time.
0 commit comments