构造函数
#<ProductsScreen / >
您可以使用此组件在自定义屏幕中显示Products屏幕。
属性:
的名字 | 类型 | 属性 | 描述 |
---|---|---|---|
screenTitle |
<可选> |
屏幕标题列表。默认值来自BuddyBoss网站的翻译文件 |
|
hideNavigationHeader |
<可选> |
使用 |
例子
/ /在custom_code / MyCustomScreen.js……import React from ' React ';从'react-native'中导入{View};import ProductsScreen from "@src/containers/Custom/ProductsScreen";const MyCustomScreen = (props) => {return ( )} MyCustomScreen。navigationOptions = {header: null}导出默认MyCustomScreen;/ /在custom_code / index.js……import MyCustomScreen from "./components/MyCustomScreen";export const applyCustomCode = externaldeetup => {externaldeetup . navigationapi。addNavigationRoute("book", "BookScreen", MyCustomScreen, "All");externalCodeSetup.navigationApi。addNavigationRoute( "book", "BookScreen", MyCustomScreen, "Main" ); }