我正在研究没有世博会的原生应用.我正在尝试使用react-native-video包.此外,我正在使用cocoapods在Xcode中运行项目.
这是我的pod文件:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'myprj' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
use_frameworks!
# Pods for myprj
# Your 'node_modules' directory is probably in the root of your project,
# but if not, adjust the `:path` accordingly
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge',
'DevSupport'
]
# Explicitly include …Run Code Online (Sandbox Code Playgroud) 我正在将“react-navigation 3.11.0”与我的react native expo应用程序一起使用,并且我有以下导航结构。
const orderStackNavigator = createStackNavigator(
{
orders: {
screen: Orders
},
orderdetail: {
screen: OrderDetail
},
ordermoredetails: {
screen: OrderMoreDetails
},
ordernotes: {
screen: OrderNotes
},
orderbillingdetails: {
screen: OrderBillingDetails
},
orderdeliverydetails: {
screen: OrderDeliveryDetails
}
},
{
//headerMode: 'none'
defaultNavigationOptions: {
headerStyle: [styles.headerStyle]
}
}
);
const inventoryManagerStackNavigator = createStackNavigator(
{
categories: {
screen: Categories
},
products: {
screen: Products
},
editProduct: {
screen: EditProduct
}
},
{
//headerMode: 'none'
defaultNavigationOptions: {
headerStyle: [styles.headerStyle]
}
} …Run Code Online (Sandbox Code Playgroud)