MCPcopy
hub / github.com/obytes/react-native-template-obytes / createAppWrapper

Function createAppWrapper

src/lib/test-utils.tsx:11–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9import '@shopify/flash-list/jestSetup';
10
11function createAppWrapper() {
12 return ({ children }: { children: React.ReactNode }) => (
13 <BottomSheetModalProvider>
14 <NavigationContainer>{children}</NavigationContainer>
15 </BottomSheetModalProvider>
16 );
17}
18
19function customRender(ui: ReactElement, options?: Omit<RenderOptions, 'wrapper'>) {
20 const Wrapper = createAppWrapper(); // make sure we have a new wrapper for each render

Callers 2

customRenderFunction · 0.85
setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected