@fadyshawky/react-native-magic 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,66 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ ## [1.0.4] - 2024-12-22
6
+
7
+ ### Fixed
8
+ - Updated React Native Screens configuration for React Navigation v7 compatibility
9
+ - Fixed navigation theme implementation for Poppins font family
10
+
11
+ ### Changed
12
+ - Simplified navigation container theme configuration
13
+ - Removed deprecated font configurations
14
+
15
+ ## [1.0.3] - 2024-12-21
16
+
17
+ ### Added
18
+ - Enhanced template structure with additional hooks and utilities
19
+ - Added new dependencies:
20
+ - @react-native-camera-roll/camera-roll ^7.9.0
21
+ - @react-native-community/datetimepicker ^8.2.0
22
+ - @react-native-community/image-editor ^4.2.1
23
+ - @react-native-community/netinfo ^11.4.1
24
+ - @react-native-community/slider ^4.5.5
25
+ - @shopify/flash-list ^1.7.2
26
+
27
+ ### Updated
28
+ - Updated React Navigation to v7
29
+ - Updated dependencies to latest versions:
30
+ - @react-navigation/bottom-tabs ^7.2.0
31
+ - @react-navigation/drawer ^7.1.1
32
+ - @react-navigation/material-top-tabs ^7.1.0
33
+ - @react-navigation/native ^7.0.14
34
+ - @react-navigation/native-stack ^7.2.0
35
+ - @reduxjs/toolkit ^2.5.0
36
+
37
+ ### Changed
38
+ - Improved project structure and organization
39
+ - Enhanced iOS configuration
40
+ - Updated Android Gradle configuration
41
+
42
+ ## [1.0.2] - 2024-12-20
43
+
44
+ ### Added
45
+ - Initial template setup with TypeScript support
46
+ - Basic navigation structure
47
+ - Redux integration with persist storage
48
+ - Common hooks and utilities
49
+
50
+ ### Changed
51
+ - Updated project dependencies
52
+ - Improved documentation
53
+
54
+ ## [1.0.1] - 2024-12-19
55
+
56
+ ### Added
57
+ - Basic React Native template structure
58
+ - Essential project configuration
59
+ - Initial README documentation
60
+
61
+ ## [1.0.0] - 2024-12-18
62
+
63
+ ### Added
64
+ - Initial release
65
+ - Basic project setup
66
+ - Core dependencies
package/README.md CHANGED
@@ -13,9 +13,8 @@ A modern, production-ready React Native template with best practices, common dep
13
13
  ## Installation
14
14
 
15
15
  ```bash
16
- npx react-native init YourAppName --template reactnativemagic
16
+ npx @react-native-community/cli init YourAppName --template @fadyshawky/react-native-magic
17
17
  cd YourAppName
18
- npm install --legacy-peer-deps
19
18
  ```
20
19
 
21
20
  For iOS, install pods:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fadyshawky/react-native-magic",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "react native template with ready components, hooks, react navigation, redux, typescript, etc.",
5
5
  "keywords": [
6
6
  "react-native-magic",
@@ -20,7 +20,7 @@
20
20
  "type": "commonjs",
21
21
  "main": "index.js",
22
22
  "dependencies": {
23
- "@gorhom/bottom-sheet": "^5.0.6",
23
+ "@fontsource/poppins": "^5.1.0",
24
24
  "@react-native-async-storage/async-storage": "^2.1.0",
25
25
  "@react-native-camera-roll/camera-roll": "^7.9.0",
26
26
  "@react-native-community/datetimepicker": "^8.2.0",
@@ -39,39 +39,20 @@
39
39
  "@types/lodash": "^4.17.13",
40
40
  "@types/react-native-vector-icons": "^6.4.18",
41
41
  "@types/react-redux": "^7.1.34",
42
- "@typescript-eslint/eslint-plugin": "^8.18.1",
43
- "@typescript-eslint/parser": "^8.18.1",
44
42
  "axios": "^1.7.9",
45
43
  "babel-plugin-transform-remove-console": "^6.9.4",
46
44
  "dayjs": "^1.11.13",
47
45
  "detox": "^20.28.0",
48
- "eslint-config-react-strong": "^2.4.0",
49
- "eslint-import-resolver-typescript": "^3.7.0",
50
- "eslint-plugin-import": "^2.31.0",
51
- "eslint-plugin-jest": "^28.10.0",
52
- "eslint-plugin-react": "^7.37.2",
53
- "eslint-plugin-react-hooks": "^5.1.0",
54
- "eslint-plugin-react-native": "^4.1.0",
55
- "eslint-plugin-unused-imports": "^4.1.4",
56
- "husky": "^9.1.7",
57
46
  "intl": "^1.2.5",
58
- "lint-staged": "^15.2.11",
59
47
  "lodash": "^4.17.21",
60
- "metro-react-native-babel-preset": "^0.77.0",
61
48
  "mime": "^4.0.6",
62
- "moment": "^2.30.1",
63
49
  "patch-package": "^8.0.0",
64
50
  "react": "^18.3.1",
65
- "react-dom": "^19.0.0",
66
51
  "react-native": "^0.76.5",
67
52
  "react-native-actions-sheet": "^0.9.7",
68
53
  "react-native-animated-pagination-dots": "^0.1.73",
69
- "react-native-bundle-visualizer": "^3.1.3",
70
54
  "react-native-calendars": "^1.1307.0",
71
- "react-native-camera": "^4.2.1",
72
55
  "react-native-config": "^1.5.3",
73
- "react-native-config-node": "^0.0.3",
74
- "react-native-dev-menu": "^4.1.1",
75
56
  "react-native-device-info": "^14.0.2",
76
57
  "react-native-dropdown-select-list": "^2.0.5",
77
58
  "react-native-gesture-handler": "^2.21.2",
@@ -81,6 +62,7 @@
81
62
  "react-native-keyboard-aware-scroll-view": "^0.9.5",
82
63
  "react-native-localization": "^2.3.2",
83
64
  "react-native-mask-input": "^1.2.3",
65
+ "react-native-orientation-locker": "^1.7.0",
84
66
  "react-native-pager-view": "^6.6.1",
85
67
  "react-native-permissions": "^5.2.1",
86
68
  "react-native-reanimated": "^3.16.6",
@@ -89,24 +71,22 @@
89
71
  "react-native-screens": "^4.4.0",
90
72
  "react-native-sfsymbols": "^1.2.2",
91
73
  "react-native-share": "^12.0.3",
92
- "react-native-size-matters": "^0.4.2",
93
74
  "react-native-snackbar": "^2.8.0",
94
75
  "react-native-svg": "^15.10.1",
95
76
  "react-native-tab-view": "^4.0.5",
96
77
  "react-native-vector-icons": "^10.2.0",
97
- "react-native-version": "^4.0.0",
98
78
  "react-native-vision-camera": "^4.6.3",
99
79
  "react-native-webview": "^13.12.5",
100
80
  "react-redux": "^9.2.0",
101
81
  "redux": "^5.0.1",
102
82
  "redux-persist": "^6.0.0",
103
- "redux-persist-transform-filter": "^0.0.22",
104
- "rn-fetch-blob": "^0.12.0"
83
+ "redux-persist-transform-filter": "^0.0.22"
105
84
  },
106
85
  "devDependencies": {
107
86
  "@babel/core": "^7.25.2",
108
87
  "@babel/preset-env": "^7.26.0",
109
88
  "@babel/runtime": "^7.26.0",
89
+ "@jest/globals": "^29.7.0",
110
90
  "@react-native-community/cli": "15.0.1",
111
91
  "@react-native-community/cli-platform-android": "15.0.1",
112
92
  "@react-native-community/cli-platform-ios": "15.0.1",
@@ -118,6 +98,12 @@
118
98
  "@types/react-test-renderer": "^18.3.1",
119
99
  "babel-jest": "^29.7.0",
120
100
  "eslint": "^8.57.1",
101
+ "eslint-plugin-import": "^2.31.0",
102
+ "eslint-plugin-jest": "^28.10.0",
103
+ "eslint-plugin-react": "^7.37.2",
104
+ "eslint-plugin-react-hooks": "^5.1.0",
105
+ "eslint-plugin-react-native": "^4.1.0",
106
+ "eslint-plugin-unused-imports": "^4.1.4",
121
107
  "jest": "^29.7.0",
122
108
  "prettier": "^2.8.8",
123
109
  "react-test-renderer": "^18.3.1",
package/template/App.tsx CHANGED
@@ -4,7 +4,11 @@
4
4
  *
5
5
  * @format
6
6
  */
7
-
7
+ import '@fontsource/poppins/300.css'; // Light
8
+ import '@fontsource/poppins/400.css'; // Regular
9
+ import '@fontsource/poppins/500.css'; // Medium
10
+ import '@fontsource/poppins/600.css'; // SemiBold
11
+ import '@fontsource/poppins/700.css'; // Bold
8
12
  import React from 'react';
9
13
  import {LogBox, SafeAreaView, StatusBar} from 'react-native';
10
14
  import {SheetProvider} from 'react-native-actions-sheet';
@@ -1,5 +1,6 @@
1
1
  package com.reactnativemagic
2
2
 
3
+ import android.os.Bundle
3
4
  import com.facebook.react.ReactActivity
4
5
  import com.facebook.react.ReactActivityDelegate
5
6
  import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
@@ -7,6 +8,10 @@ import com.facebook.react.defaults.DefaultReactActivityDelegate
7
8
 
8
9
  class MainActivity : ReactActivity() {
9
10
 
11
+ override fun onCreate(savedInstanceState: Bundle?) {
12
+ super.onCreate(null)
13
+ }
14
+
10
15
  /**
11
16
  * Returns the name of the main component registered from JavaScript. This is used to schedule
12
17
  * rendering of the component.
@@ -1242,14 +1242,6 @@ PODS:
1242
1242
  - ReactCommon/turbomodule/bridging
1243
1243
  - ReactCommon/turbomodule/core
1244
1244
  - Yoga
1245
- - react-native-camera (4.2.1):
1246
- - React-Core
1247
- - react-native-camera/RCT (= 4.2.1)
1248
- - react-native-camera/RN (= 4.2.1)
1249
- - react-native-camera/RCT (4.2.1):
1250
- - React-Core
1251
- - react-native-camera/RN (4.2.1):
1252
- - React-Core
1253
1245
  - react-native-cameraroll (7.9.0):
1254
1246
  - DoubleConversion
1255
1247
  - glog
@@ -1302,6 +1294,8 @@ PODS:
1302
1294
  - React-Core
1303
1295
  - react-native-netinfo (11.4.1):
1304
1296
  - React-Core
1297
+ - react-native-orientation-locker (1.7.0):
1298
+ - React-Core
1305
1299
  - react-native-pager-view (6.6.1):
1306
1300
  - DoubleConversion
1307
1301
  - glog
@@ -1724,8 +1718,6 @@ PODS:
1724
1718
  - React-utils (= 0.76.5)
1725
1719
  - ReactNativeLocalization (2.3.2):
1726
1720
  - React-Core
1727
- - rn-fetch-blob (0.12.0):
1728
- - React-Core
1729
1721
  - RNCAsyncStorage (2.1.0):
1730
1722
  - DoubleConversion
1731
1723
  - glog
@@ -1770,10 +1762,6 @@ PODS:
1770
1762
  - Yoga
1771
1763
  - RNDeviceInfo (14.0.2):
1772
1764
  - React-Core
1773
- - RNDevMenu (4.1.1):
1774
- - React-Core
1775
- - React-Core/DevSupport
1776
- - React-RCTNetwork
1777
1765
  - RNFlashList (1.7.2):
1778
1766
  - DoubleConversion
1779
1767
  - glog
@@ -2113,13 +2101,13 @@ DEPENDENCIES:
2113
2101
  - React-logger (from `../node_modules/react-native/ReactCommon/logger`)
2114
2102
  - React-Mapbuffer (from `../node_modules/react-native/ReactCommon`)
2115
2103
  - React-microtasksnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/microtasks`)
2116
- - react-native-camera (from `../node_modules/react-native-camera`)
2117
2104
  - "react-native-cameraroll (from `../node_modules/@react-native-camera-roll/camera-roll`)"
2118
2105
  - react-native-config (from `../node_modules/react-native-config`)
2119
2106
  - react-native-config/Extension (from `../node_modules/react-native-config`)
2120
2107
  - "react-native-image-editor (from `../node_modules/@react-native-community/image-editor`)"
2121
2108
  - react-native-in-app-review (from `../node_modules/react-native-in-app-review`)
2122
2109
  - "react-native-netinfo (from `../node_modules/@react-native-community/netinfo`)"
2110
+ - react-native-orientation-locker (from `../node_modules/react-native-orientation-locker`)
2123
2111
  - react-native-pager-view (from `../node_modules/react-native-pager-view`)
2124
2112
  - react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)
2125
2113
  - react-native-sfsymbols (from `../node_modules/react-native-sfsymbols`)
@@ -2153,11 +2141,9 @@ DEPENDENCIES:
2153
2141
  - ReactCodegen (from `build/generated/ios`)
2154
2142
  - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
2155
2143
  - ReactNativeLocalization (from `../node_modules/react-native-localization`)
2156
- - rn-fetch-blob (from `../node_modules/rn-fetch-blob`)
2157
2144
  - "RNCAsyncStorage (from `../node_modules/@react-native-async-storage/async-storage`)"
2158
2145
  - "RNDateTimePicker (from `../node_modules/@react-native-community/datetimepicker`)"
2159
2146
  - RNDeviceInfo (from `../node_modules/react-native-device-info`)
2160
- - RNDevMenu (from `../node_modules/react-native-dev-menu`)
2161
2147
  - "RNFlashList (from `../node_modules/@shopify/flash-list`)"
2162
2148
  - RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
2163
2149
  - RNImageCropPicker (from `../node_modules/react-native-image-crop-picker`)
@@ -2248,8 +2234,6 @@ EXTERNAL SOURCES:
2248
2234
  :path: "../node_modules/react-native/ReactCommon"
2249
2235
  React-microtasksnativemodule:
2250
2236
  :path: "../node_modules/react-native/ReactCommon/react/nativemodule/microtasks"
2251
- react-native-camera:
2252
- :path: "../node_modules/react-native-camera"
2253
2237
  react-native-cameraroll:
2254
2238
  :path: "../node_modules/@react-native-camera-roll/camera-roll"
2255
2239
  react-native-config:
@@ -2260,6 +2244,8 @@ EXTERNAL SOURCES:
2260
2244
  :path: "../node_modules/react-native-in-app-review"
2261
2245
  react-native-netinfo:
2262
2246
  :path: "../node_modules/@react-native-community/netinfo"
2247
+ react-native-orientation-locker:
2248
+ :path: "../node_modules/react-native-orientation-locker"
2263
2249
  react-native-pager-view:
2264
2250
  :path: "../node_modules/react-native-pager-view"
2265
2251
  react-native-safe-area-context:
@@ -2326,16 +2312,12 @@ EXTERNAL SOURCES:
2326
2312
  :path: "../node_modules/react-native/ReactCommon"
2327
2313
  ReactNativeLocalization:
2328
2314
  :path: "../node_modules/react-native-localization"
2329
- rn-fetch-blob:
2330
- :path: "../node_modules/rn-fetch-blob"
2331
2315
  RNCAsyncStorage:
2332
2316
  :path: "../node_modules/@react-native-async-storage/async-storage"
2333
2317
  RNDateTimePicker:
2334
2318
  :path: "../node_modules/@react-native-community/datetimepicker"
2335
2319
  RNDeviceInfo:
2336
2320
  :path: "../node_modules/react-native-device-info"
2337
- RNDevMenu:
2338
- :path: "../node_modules/react-native-dev-menu"
2339
2321
  RNFlashList:
2340
2322
  :path: "../node_modules/@shopify/flash-list"
2341
2323
  RNGestureHandler:
@@ -2397,12 +2379,12 @@ SPEC CHECKSUMS:
2397
2379
  React-logger: 697873f06b8ba436e3cddf28018ab4741e8071b6
2398
2380
  React-Mapbuffer: c174e11bdea12dce07df8669d6c0dc97eb0c7706
2399
2381
  React-microtasksnativemodule: 8a80099ad7391f4e13a48b12796d96680f120dc6
2400
- react-native-camera: 3eae183c1d111103963f3dd913b65d01aef8110f
2401
2382
  react-native-cameraroll: c71058d31a5e8088c9d42ff20bfe9cbc6752d36a
2402
2383
  react-native-config: 8f7283449bbb048902f4e764affbbf24504454af
2403
2384
  react-native-image-editor: e86442c7276195eacb43861741615281e6e3a108
2404
2385
  react-native-in-app-review: db8bb167a5f238e7ceca5c242d6b36ce8c4404a4
2405
2386
  react-native-netinfo: f0a9899081c185db1de5bb2fdc1c88c202a059ac
2387
+ react-native-orientation-locker: 5819fd23ca89cbac0d736fb4314745f62716d517
2406
2388
  react-native-pager-view: 9dbdfdc85d9409c054ee2581c6837c193fbadccc
2407
2389
  react-native-safe-area-context: d6406c2adbd41b2e09ab1c386781dc1c81a90919
2408
2390
  react-native-sfsymbols: ca90d8bb7d6ad06523bf833f2becae22b97fb056
@@ -2436,11 +2418,9 @@ SPEC CHECKSUMS:
2436
2418
  ReactCodegen: daa13d9e48c9bdb1daac4bd694b9dd54e06681df
2437
2419
  ReactCommon: a6b87a7591591f7a52d9c0fec3aa05e0620d5dd3
2438
2420
  ReactNativeLocalization: fb171138cdc80d5d0d4f20243d2fc82c2b3cc48f
2439
- rn-fetch-blob: f065bb7ab7fb48dd002629f8bdcb0336602d3cba
2440
2421
  RNCAsyncStorage: fe98f1b459a87b80f12207da80c50b3a3abb6081
2441
2422
  RNDateTimePicker: 6008d74df8122d6af6d9d08096bff19a8c6ba647
2442
2423
  RNDeviceInfo: 3f2e5fcca3637f75c6d30ba287293c2f97206781
2443
- RNDevMenu: 72807568fe4188bd4c40ce32675d82434b43c45d
2444
2424
  RNFlashList: 2af1645548006fe5e4586c8c3d7e84f060a5478f
2445
2425
  RNGestureHandler: 0e5ae8d72ef4afb855e98dcdbe60f27d938abe13
2446
2426
  RNImageCropPicker: 8e39c01f205e00d739c31e682f068aac315587bf