Skip to content

Commit

Permalink
feat: added expo router
Browse files Browse the repository at this point in the history
  • Loading branch information
berenteb committed Dec 21, 2023
1 parent 5c89eb8 commit 19276cd
Show file tree
Hide file tree
Showing 7 changed files with 423 additions and 40 deletions.
85 changes: 76 additions & 9 deletions .idea/workspace.xml

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

20 changes: 0 additions & 20 deletions App.tsx

This file was deleted.

4 changes: 3 additions & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"expo": {
"name": "KonferenciApp",
"slug": "konferenciapp",
"scheme": "konferenciapp",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon-rounded.png",
Expand Down Expand Up @@ -29,6 +30,7 @@
"projectId": "922ba2d9-369f-4940-aba6-9f2331f1f1c1"
}
},
"owner": "kir-dev"
"owner": "kir-dev",
"plugins": ["expo-router"]
}
}
11 changes: 11 additions & 0 deletions app/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Text, View } from 'react-native';

interface HomePageProps {}

export default function HomePage({}: HomePageProps) {
return (
<View>
<Text>Hello there!</Text>
</View>
);
}
1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: ['expo-router/babel'],
};
};
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "konferenciapp",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"main": "expo-router/entry",
"scripts": {
"start": "expo start",
"android": "expo start --android",
Expand All @@ -13,10 +13,16 @@
},
"dependencies": {
"expo": "~49.0.21",
"expo-constants": "~14.4.2",
"expo-linking": "~5.0.2",
"expo-router": "^2.0.0",
"expo-splash-screen": "~0.20.5",
"expo-status-bar": "~1.6.0",
"react": "18.2.0",
"react-native": "0.72.6",
"expo-splash-screen": "~0.20.5"
"react-native-gesture-handler": "~2.12.0",
"react-native-safe-area-context": "4.6.3",
"react-native-screens": "~3.22.0"
},
"devDependencies": {
"@babel/core": "^7.20.0",
Expand Down
Loading

0 comments on commit 19276cd

Please sign in to comment.