Skip to content

Commit

Permalink
chore: Using expo-router.
Browse files Browse the repository at this point in the history
  • Loading branch information
willtp87 committed Jun 9, 2024
1 parent 0ede4fc commit fd21fcc
Show file tree
Hide file tree
Showing 6 changed files with 441 additions and 23 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ If you would like to contribute to this repo create an issue or pull request.
### Frameworks and Libraries

* [Expo](https://expo.dev/)
* [Expo Router](https://docs.expo.dev/router/introduction/)
* [React Native Elements](https://reactnativeelements.com/docs)
* [i18next](https://www.i18next.com/)
* [Redux Toolkit](https://redux-toolkit.js.org/)
Expand Down
6 changes: 5 additions & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"expo": {
"name": "Panting React Native Template",
"slug": "panting-react-native-template",
"scheme": "panting-scheme",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
Expand All @@ -16,6 +17,9 @@
],
"ios": {
"supportsTablet": true
}
},
"plugins": [
"expo-router"
]
}
}
2 changes: 1 addition & 1 deletion App.test.tsx → app/__tests__/_layout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { render } from "@testing-library/react-native";
import React from "react";

import App from "./App";
import App from "../_layout";

describe("<App />", () => {
it("Has expected number of children.", () => {
Expand Down
6 changes: 3 additions & 3 deletions App.tsx → app/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { ThemeProvider, Text, createTheme } from "@rneui/themed";
import { StatusBar } from "expo-status-bar";
import React from "react";
import "intl-pluralrules";
import "./i18n/i18n";
import "../i18n/i18n";
import { useTranslation } from "react-i18next";
import { StyleSheet, View } from "react-native";
import { Provider } from "react-redux";

import TimeInApp from "./components/TimeInApp";
import { store } from "./store";
import TimeInApp from "../components/TimeInApp";
import { store } from "../store";

const theme = createTheme({});

Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "panting-react-native-template",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"main": "expo-router/entry",
"scripts": {
"start": "expo start",
"ts-check": "tsc",
Expand All @@ -15,14 +15,18 @@
"@rneui/base": "4.0.0-rc.7",
"@rneui/themed": "4.0.0-rc.8",
"expo": "~51",
"expo-constants": "~16.0.2",
"expo-linking": "~6.3.1",
"expo-localization": "^15.0.3",
"expo-router": "~3.5.15",
"expo-status-bar": "~1.12.1",
"i18next": "^23.11.4",
"intl-pluralrules": "^2.0.1",
"react": "~18.2.0",
"react-i18next": "^14.1.1",
"react-native": "^0.74",
"react-native-safe-area-context": "^4.10.1",
"react-native-safe-area-context": "4.10.1",
"react-native-screens": "3.31.1",
"react-native-vector-icons": "^10.1.0",
"react-redux": "^9.1.2",
"typescript": "^5.3.0"
Expand Down
Loading

0 comments on commit fd21fcc

Please sign in to comment.