mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-09-16 23:57:34 -04:00
* nativewind 4 spike * themed and cssInterop fixes * clearify comment on inline Animated.View styles * remaining style fixes and supplementary agent docs * fix pill button on media screens --------- Co-authored-by: Johannes Klein <17345891+jtklein@users.noreply.github.com>
13 lines
594 B
JavaScript
13 lines
594 B
JavaScript
// Mortal gates children on navigation focus, which does not run reliably after
|
|
// CommonActions.reset in integration tests. See MOB-879.
|
|
jest.mock( "components/SharedComponents/Mortal", ( ) => {
|
|
// jest.requireActual instead of require: nativewind's babel plugin rewrites
|
|
// React.createElement from a plain require("react") to reference a hoisted
|
|
// import, which jest.mock factories aren't allowed to touch
|
|
const React = jest.requireActual( "react" );
|
|
return {
|
|
__esModule: true,
|
|
default: ( { children } ) => React.createElement( React.Fragment, null, children ),
|
|
};
|
|
} );
|