Skip to content

Instantly share code, notes, and snippets.

@Feroz-Istar
Last active July 24, 2019 11:14
Show Gist options
  • Save Feroz-Istar/e5752b5387f83263c5221adfce14f0df to your computer and use it in GitHub Desktop.
Save Feroz-Istar/e5752b5387f83263c5221adfce14f0df to your computer and use it in GitHub Desktop.
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