UNPKG

@applicaster/zapp-react-native-utils

Version:

Applicaster Zapp React Native utilities package

56 lines (53 loc) 1.26 kB
// @ts-ignore import { View } from "react-native"; const mockData: NavigationScreenData = { screen: { id: "screen-id", name: "screen", data: { source: "" }, navigations: [], hooks: { preload_plugins: [ { screen_id: "preload-plugin-id", identifier: "preload-plugin-id", type: { name: "anytype", identifier: "anytype", type: "player", module: View, }, }, ], }, home: false, home_offline: false, supports_offline: false, ui_components: [ { id: "screen-id", name: "screen", data: { source: "" }, navigations: [], hooks: { preload_plugins: [ { screen_id: "preload-plugin-id", identifier: "preload-plugin-id", type: { name: "anytype", identifier: "anytype", type: "player", module: View, }, }, ], }, home: false, home_offline: false, supports_offline: false, }, ], }, }; export const useCurrentScreenData = jest.fn().mockReturnValue(mockData.screen);