Last active
July 24, 2019 11:14
-
-
Save Feroz-Istar/e5752b5387f83263c5221adfce14f0df to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install -g expo-cli | |
expo init AwesomeProject | |
npm i -g react-native-cli -- this need to run when you need to add navigations | |
cd AwesomeProject | |
npm start # you can also use: expo start | |
In visual studio code install React Native Tools | |
in App js for navigation do this : | |
import { createStackNavigator, createAppContainer } from 'react-navigation'; | |
import Settings from './Settings'; | |
import Home from './Home'; | |
const MainNavigator = createStackNavigator({ | |
Homescreen: { | |
screen: Home, navigationOptions: { | |
header: null, | |
} | |
}, | |
Profilescreen: { screen: Settings }, | |
}); | |
const App = createAppContainer(MainNavigator); | |
export default App; | |
--- | |
For TextInput to be treated as hidden | |
secureTextEntry={true} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment