Skip to content

Commit 51939cd

Browse files
committed
2025-11-24 [1]
1 parent 1b9dde0 commit 51939cd

38 files changed

+5683
-1270
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
name: CI
2-
on: [push, pull_request]
2+
3+
on:
4+
push:
5+
pull_request:
6+
37
jobs:
4-
check:
5-
runs-on: ubuntu-latest
6-
steps:
7-
- uses: actions/checkout@v4
8-
- uses: actions/setup-node@v4
9-
with:
10-
node-version: 20
11-
- run: npm ci
12-
- run: npm run build --if-present
13-
- run: npx tsc --noEmit || true
8+
check:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 20
17+
18+
- run: npm ci
19+
20+
- run: npm run build --if-present
21+
22+
- run: npx tsc --noEmit || true

App.tsx

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,32 @@
1-
import { StatusBar } from 'expo-status-bar';
2-
import { StyleSheet, Text, View } from 'react-native';
1+
/**@format
2+
* @coderooz
3+
* @author (Ranit Saha) <codeooz.dev@gmail.com>
4+
* @filePath App.tsx
5+
* @lastModified 2025-11-24
6+
* @version @1.0.5 - Integration of Notifactions system.
7+
*/
8+
9+
import * as Notifications from "expo-notifications";
10+
import AppProvider from '@/context/AppProvider';
11+
// import AppNavigationContainer from '@/navigation/AppNavigation';
12+
import OnBoardingContainer from '@/navigation/OnBoardingNavigation';
13+
import { useEffect } from "react";
314

415
export default function App() {
16+
17+
useEffect(() => {
18+
(async () => {
19+
const { status } = await Notifications.requestPermissionsAsync();
20+
if (status !== "granted") return;
21+
22+
const token = await Notifications.getExpoPushTokenAsync();
23+
console.log("Expo Push Token:", token.data);
24+
})();
25+
}, []);
26+
527
return (
6-
<>
7-
<StatusBar hideTransitionAnimation='fade' hidden/>
8-
<View className="flex-1 items-center justify-center bg-green-800">
9-
<Text className="text-2xl font-bold text-blue-500">
10-
Welcome to Nativewind!
11-
</Text>
12-
</View>
13-
</>
28+
<AppProvider>
29+
<OnBoardingContainer />
30+
</AppProvider>
1431
);
1532
}

app.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,36 @@
77
"icon": "./assets/icon.png",
88
"userInterfaceStyle": "automatic",
99
"newArchEnabled": true,
10+
"jsEngine": "hermes",
1011
"splash": {
1112
"image": "./assets/splash-icon.png",
1213
"resizeMode": "contain",
1314
"backgroundColor": "#ffffff"
1415
},
1516
"ios": {
16-
"supportsTablet": true
17+
"supportsTablet": true,
18+
"jsEngine": "jsc"
1719
},
1820
"android": {
1921
"adaptiveIcon": {
2022
"foregroundImage": "./assets/adaptive-icon.png",
2123
"backgroundColor": "#ffffff"
2224
},
2325
"edgeToEdgeEnabled": true,
24-
"predictiveBackGestureEnabled": false
26+
"predictiveBackGestureEnabled": false,
27+
"package": "com.coderooz.customexpotemplate"
2528
},
2629
"web": {
2730
"favicon": "./assets/favicon.png",
2831
"bundler": "metro"
2932
},
3033
"plugins": [
3134
"expo-sqlite"
32-
]
35+
],
36+
"extra": {
37+
"eas": {
38+
"projectId": "34910eb0-bd1b-4adf-b782-e6578b44f5ce"
39+
}
40+
}
3341
}
3442
}

eas.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"cli": {
3+
"version": ">= 16.28.0",
4+
"appVersionSource": "remote"
5+
},
6+
"build": {
7+
"development": {
8+
"developmentClient": true,
9+
"distribution": "internal"
10+
},
11+
"preview": {
12+
"distribution": "internal"
13+
},
14+
"production": {
15+
"autoIncrement": true
16+
}
17+
},
18+
"submit": {
19+
"production": {}
20+
}
21+
}

eslint.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// https://docs.expo.dev/guides/using-eslint/
2+
const { defineConfig } = require('eslint/config');
3+
const expoConfig = require("eslint-config-expo/flat");
4+
5+
module.exports = defineConfig([
6+
expoConfig,
7+
{
8+
ignores: ["dist/*"],
9+
}
10+
]);

metro.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
const { getDefaultConfig } = require("expo/metro-config");
22
const { withNativeWind } = require('nativewind/metro');
3-
43
const config = getDefaultConfig(__dirname);
5-
6-
module.exports = withNativeWind(config, { input: './global.css' })
4+
module.exports = withNativeWind(config, { input: './global.css' });

0 commit comments

Comments
 (0)