Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
EXPO_PUBLIC_HOME_PAGE_URL=https://afnprojects.com
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ yarn-error.*

# local env files
.env*.local
.env

# typescript
*.tsbuildinfo
Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
},
"typescript.tsdk": "node_modules/typescript/lib",
"cSpell.words": [
"persistor",
"scriptian"
]
}
2 changes: 1 addition & 1 deletion __tests__/Index-test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render } from "@testing-library/react-native";

import Index from "@/app/index";
import Index from "@/src/app/index";

describe("<Index />", () => {
test("Text renders correctly on Index", () => {
Expand Down
5 changes: 0 additions & 5 deletions app/_layout.tsx

This file was deleted.

146 changes: 145 additions & 1 deletion package-lock.json

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

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
},
"dependencies": {
"@expo/vector-icons": "^15.0.2",
"@react-native-async-storage/async-storage": "^2.2.0",
"@react-navigation/bottom-tabs": "^7.4.0",
"@react-navigation/elements": "^2.6.3",
"@react-navigation/native": "^7.1.8",
"@reduxjs/toolkit": "^2.9.0",
"expo": "~54.0.13",
"expo-constants": "~18.0.9",
"expo-dev-client": "~6.0.15",
Expand All @@ -38,7 +40,9 @@
"react-native-screens": "~4.16.0",
"react-native-web": "~0.21.0",
"react-native-webview": "13.15.0",
"react-native-worklets": "0.5.1"
"react-native-worklets": "0.5.1",
"react-redux": "^9.2.0",
"redux-persist": "^6.0.0"
},
"devDependencies": {
"@testing-library/react-native": "^13.3.3",
Expand All @@ -55,4 +59,4 @@
"jest": {
"preset": "jest-expo"
}
}
}
33 changes: 33 additions & 0 deletions src/app/_layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { Stack } from "expo-router";
import { StatusBar } from "expo-status-bar";
import React from "react";
import { ActivityIndicator, Text, View } from "react-native";
import { SafeAreaProvider } from "react-native-safe-area-context";
import { Provider } from "react-redux";
import { PersistGate } from "redux-persist/integration/react";

import { persistor, store } from "../store";

const LoadingComponent = () => (
<View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
<ActivityIndicator size="large" color="#007AFF" />
<Text style={{ marginTop: 16, fontSize: 16, color: "#8E8E93" }}>
Loading Scriptian...
</Text>
</View>
);

export default function RootLayout() {
return (
<Provider store={store}>
<PersistGate loading={<LoadingComponent />} persistor={persistor}>
<SafeAreaProvider>
<StatusBar style="auto" />
<Stack screenOptions={{ headerShown: false }}>
<Stack.Screen name="index" />
</Stack>
</SafeAreaProvider>
</PersistGate>
</Provider>
);
}
File renamed without changes.
Loading