Skip to content

Commit

Permalink
[nav] Add temporary navigation between pages
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaynthakur authored Sep 26, 2023
1 parent 14645c5 commit 7e607ab
Show file tree
Hide file tree
Showing 16 changed files with 307 additions and 50 deletions.
9 changes: 6 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports = {
extends: ['@calblueprint/eslint-config-react'],
};

extends: ['@calblueprint/eslint-config-react'],
rules: {
'react/react-in-jsx-scope': 'off',
'react/jsx-uses-react': 'off',
},
};
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ jobs:
# Check for TypeScript errors #
################################
- name: Run TypeScript compiler (tsc)
run: npx tsc --noEmit
run: npx tsc --noEmit
Empty file added .husky/post-merge
Empty file.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
. "$(dirname -- "$0")/_/husky.sh"

npm run prepare
npm run prettier
14 changes: 7 additions & 7 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"eamodio.gitlens"
],
"unwantedRecommendations": []
}
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"eamodio.gitlens"
],
"unwantedRecommendations": []
}
14 changes: 7 additions & 7 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.formatDocument": true,
"source.fixAll.eslint": true,
"source.organizeImports": true
}
}
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.formatDocument": true,
"source.fixAll.eslint": true,
"source.organizeImports": true
}
}
38 changes: 17 additions & 21 deletions App.tsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import HomeScreen from './src/screens/HomeScreen';
import LoginScreen from './src/screens/LoginScreen';
import StoryScreen from './src/screens/StoryScreen';
import ToastScreen from './src/screens/ToastScreen';
import { RootStackParamsList } from './src/types/types';

const Stack = createNativeStackNavigator<RootStackParamsList>();

export default function App() {
return (
<View style={styles.container}>
<Text>The Girls Write Now Team!</Text>
<Text>Akshay</Text>
<Text>Brenda</Text>
<Text>...</Text>
<Text>...</Text>
<Text>...</Text>
<Text>...</Text>
<StatusBar style="auto" />
</View>
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Home" component={HomeScreen} />
<Stack.Screen name="Story" component={StoryScreen} />
<Stack.Screen name="Login" component={LoginScreen} />
<Stack.Screen name="Toast" component={ToastScreen} />
</Stack.Navigator>
</NavigationContainer>
);
}

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function (api) {
module.exports = api => {
api.cache(true);
return {
presets: ['babel-preset-expo'],
Expand Down
197 changes: 194 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7e607ab

Please sign in to comment.