React-Native_demo
React-Native_demo copied to clipboard
TabNavigator.js 中无法设置StackNavigator属性,比如headerTitle
Details.js export default class DetailsScreen extends PureComponent { render() {return(<View></View>)} }
Home.js export default class HomeScreen extends PureComponent { render() {return(<View></View>) } }
Profile.js export default class ProfileScreen extends PureComponent { render() {return(<View></View>) } }
TabNavigator.js export default createBottomTabNavigator({ Home: { screen: Home, navigationOptions: ({ navigation }) => ({
header: null,
headerTitle: '首页',
tabBarLabel: '昭阳医生',
})
},
Profile: ProfileStack
});
RouteConfig.js const RouteConfig = { MainTab: { screen: MainTab, // navigationOptions: ({navigation}) => ({header: null}) }, Details: { screen: DetailsScreen, } };
export default RouteConfig;
What went wrong: A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugApk'. A problem occurred configuring project ':react-native-orientation'. > Could not resolve all dependencies for configuration ':react-native-orientation:_debugPublish'. > Could not determine artifacts for org.webkit:android-jsc:r174650 > Could not get resource 'https://jcenter.bintray.com/org/webkit/android-jsc/r174650/android-jsc-r174650.aar'. > Could not HEAD 'https://jcenter.bintray.com/org/webkit/android-jsc/r174650/android-jsc-r174650.aar'. > Connect to d29vzk4ow07wi7.cloudfront.net:443 [d29vzk4ow07wi7.cloudfront.net/13.35.103.62, d29vzk4ow07wi7.cloudfront.net/13.35.103.11, d29vzk4ow07wi7.cloudfront.net/13.35.103.174, d29vzk4ow07wi7.cloudfront.net/13.35.103.48] failed: Connection timed out: connect
- Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
why?