react-navigation

react navigation in react native, with conditional stack, and authentication

人走茶凉 提交于 2020-11-29 19:14:11
问题 import React, { Component } from 'react' import { Container, Content, Form, Item, Input, Label, Button,Text, Icon} from 'native-base' import AsyncStorage from '@react-native-community/async-storage'; import authStore from '../store/authStore'; export default class Login extends Component { constructor(props){ super(props); this.state={ email:'', password:'' } } handleLogin = async () =>{ let requestObject = { email: this.state.email, password: this.state.password } authStore.userLogin

DrawerNavigator: Change Text Color

佐手、 提交于 2020-11-25 02:04:19
问题 On react-navigation 's DrawerNavigator , is there a way to change the text color and background color for the item? By default, the color scheme looks like the following: Which is initialized by the following: export const Drawer = DrawerNavigator({ dOne: { screen: Screen1, }, dTwo: { screen: Screen2, } } ); Setting the color property within the screen's contentOptions 's style does not appear to have an effect. Should I extend new components for each row (labeled "Primary", "Secondary", etc.

DrawerNavigator: Change Text Color

心已入冬 提交于 2020-11-25 02:04:01
问题 On react-navigation 's DrawerNavigator , is there a way to change the text color and background color for the item? By default, the color scheme looks like the following: Which is initialized by the following: export const Drawer = DrawerNavigator({ dOne: { screen: Screen1, }, dTwo: { screen: Screen2, } } ); Setting the color property within the screen's contentOptions 's style does not appear to have an effect. Should I extend new components for each row (labeled "Primary", "Secondary", etc.