Skip to content

Commit ccbce9f

Browse files
authored
Merge pull request #7 from zerodays/chore/update-project
Upgraded outdated dependencies
2 parents 34bc225 + b59e622 commit ccbce9f

19 files changed

Lines changed: 16881 additions & 9276 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: 🏗 Setup Node
1313
uses: actions/setup-node@v3
1414
with:
15-
node-version: 18.x
15+
node-version: 20.x
1616
cache: yarn
1717

1818
- name: 🏗 Setup EAS

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Node.js
1313
uses: actions/setup-node@v3
1414
with:
15-
node-version: '18'
15+
node-version: '20'
1616
- name: Install Dependencies
1717
run: yarn install --frozen-lockfile
1818
- name: Run lint
@@ -27,7 +27,7 @@ jobs:
2727
- name: Setup Node.js
2828
uses: actions/setup-node@v3
2929
with:
30-
node-version: '18'
30+
node-version: '20'
3131
- name: Install Dependencies
3232
run: yarn install --frozen-lockfile
3333
- name: Run typecheck
@@ -42,7 +42,7 @@ jobs:
4242
- name: Setup Node.js
4343
uses: actions/setup-node@v3
4444
with:
45-
node-version: '18'
45+
node-version: '20'
4646
- name: Install Dependencies
4747
run: yarn install --frozen-lockfile
4848
- name: Run Prettier through format

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,5 @@ android/
4545
# The following patterns were generated by expo-cli
4646

4747
expo-env.d.ts
48-
# @end expo-cli
48+
# @end expo-cli
49+
.env.local

.yarn/install-state.gz

1.56 MB
Binary file not shown.

.yarn/releases/yarn-4.9.2.cjs

Lines changed: 942 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nodeLinker: node-modules
2+
3+
yarnPath: .yarn/releases/yarn-4.9.2.cjs

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ yarn
5353

5454
## Project Structure 🏗️
5555

56-
This template provides a well-organized directory structure with a set of pre-configured files to streamline your development process. Here's an overview of the essential components:
56+
This template provides a well-organized directory structure with a set of preconfigured files to streamline your development process. Here's an overview of the essential components:
5757

5858
- `.github`: Contains GitHub Actions workflows for CI/CD.
5959
- `app`: Contains the screens (utilizing expo-router file naming).
@@ -166,7 +166,7 @@ Pre-configured routing structure for authenticated and guest users. Routes are t
166166
```typescript
167167
import { Href } from 'expo-router';
168168

169-
type RouteConstructor = <T>(href: Href<T>) => Href<T>;
169+
type RouteConstructor = (href: Href) => Href;
170170
const Route: RouteConstructor = (href) => href;
171171

172172
const Routes = {
@@ -281,7 +281,7 @@ These environment variables are injected into the build process using the Infisi
281281

282282
### Included Packages and Their Benefits 📦
283283

284-
The `react-native-template` includes several packages that extend its capabilities and enrich the development experience. Heres a brief overview of these packages and what they offer:
284+
The `react-native-template` includes several packages that extend its capabilities and enrich the development experience. Here's a brief overview of these packages and what they offer:
285285

286286
<a name="zod"></a>
287287

@@ -299,7 +299,7 @@ The `react-native-template` includes several packages that extend its capabiliti
299299

300300
#### Lucide-React-Native
301301

302-
[Lucide-React-Native](https://github.com/lucide-icons/lucide-react-native) is a fork of the Feather Icons project, specifically tailored for React Native applications. It provides a collection of beautifully crafted, customizable icons which are easy to use in UI development. Using Lucide icons helps maintain consistency and clarity in the apps design, making the interface more intuitive and visually appealing.
302+
[Lucide-React-Native](https://github.com/lucide-icons/lucide-react-native) is a fork of the Feather Icons project, specifically tailored for React Native applications. It provides a collection of beautifully crafted, customizable icons which are easy to use in UI development. Using Lucide icons helps maintain consistency and clarity in the app's design, making the interface more intuitive and visually appealing.
303303

304304
<a name="react-hook-form"></a>
305305

app.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
[
3838
"@sentry/react-native/expo",
3939
{
40+
"url": "https://sentry.io/",
4041
"organization": "sentry org slug, or use the `SENTRY_ORG` environment variable",
4142
"project": "sentry project name, or use the `SENTRY_PROJECT` environment variable"
4243
}

app/(authenticated)/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Button from '@components/ui/button';
22
import { Loading } from '@components/ui/loading';
33
import { cn } from '@utils/cn';
4+
import Routes from '@utils/routes';
45
import { useExampleStore } from '@utils/stores/example-store';
56
import useToastStore from '@utils/stores/toast-store';
67
import theme from '@utils/theme';
@@ -31,7 +32,9 @@ const AuthHomeScreen = () => {
3132
<Button asChild onPress={() => decrement()}>
3233
<MinusIcon color={theme.black} />
3334
</Button>
34-
<Button onPress={() => router.navigate('(guest)')}>Logout</Button>
35+
<Button onPress={() => router.navigate(Routes.guest.index)}>
36+
Logout
37+
</Button>
3538
<Loading />
3639
<Button onPress={() => setToast({ type: 'success', message: 'Hello!' })}>
3740
Show Toast

app/(guest)/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Button from '@components/ui/button';
2+
import Routes from '@utils/routes';
23
import theme from '@utils/theme';
34
import { router } from 'expo-router';
45
import { useTranslation } from 'react-i18next';
@@ -22,7 +23,7 @@ const GuestHomeScreen = () => {
2223
<Text>{t('helloWorld')}</Text>
2324
<Button
2425
variant="default"
25-
onPress={() => router.navigate('(authenticated)')}>
26+
onPress={() => router.navigate(Routes.auth.index)}>
2627
Login
2728
</Button>
2829

0 commit comments

Comments
 (0)