@applicaster/zapp-react-native-utils
Version:
Applicaster Zapp React Native utilities package
45 lines (41 loc) • 955 B
text/typescript
// @ts-ignore
import { View } from "react-native";
const mockData = {
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: [
{
component_type: "screen-type",
id: "screen-type-id",
styles: {},
position: 0,
rules: {},
localizations: { string: { any: "any" } },
name: "",
advertising: {},
},
],
},
};
export const useScreenContext = jest.fn().mockReturnValue(mockData);
export const useNavbarState = () => ({ visible: true });