@teamvortexsoftware/vortex-react-native 0.0.7 → 0.0.8

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/package.json CHANGED
@@ -2,23 +2,29 @@
2
2
  "name": "@teamvortexsoftware/vortex-react-native",
3
3
  "description": "",
4
4
  "author": "@teamvortexsoftware",
5
- "version": "0.0.7",
6
- "publishConfig": {
7
- "access": "restricted"
5
+ "version": "0.0.8",
6
+ "main": ".plugin/withVortexReactNative.js",
7
+ "exports": {
8
+ ".": "./plugin.js",
9
+ "./runtime": "./dist/index.js"
10
+ },
11
+ "expo": {
12
+ "plugins": [
13
+ "@teamvortexsoftware/vortex-react-native"
14
+ ]
8
15
  },
9
- "main": "src/index.tsx",
10
- "types": "src/index.tsx",
11
16
  "react-native": "src/index.tsx",
12
17
  "devDependencies": {
13
18
  "@eslint/js": "^9.24.0",
19
+ "@expo/config-plugins": "^10.0.2",
14
20
  "@types/react": "18.2.14",
15
21
  "@types/react-native-vector-icons": "^6.4.18",
16
22
  "eslint": "^9.24.0",
17
23
  "eslint-plugin-react-native": "^4.1.0",
18
24
  "typescript": "5.8.3",
19
25
  "typescript-eslint": "^8.30.1",
20
- "@teamvortexsoftware/eslint-config": "0.0.0",
21
- "@teamvortexsoftware/typescript-config": "0.0.0"
26
+ "@teamvortexsoftware/typescript-config": "0.0.0",
27
+ "@teamvortexsoftware/eslint-config": "0.0.0"
22
28
  },
23
29
  "dependencies": {
24
30
  "expo-standard-web-crypto": "^2.1.4",
@@ -35,7 +41,7 @@
35
41
  "react-native-svg": "*"
36
42
  },
37
43
  "scripts": {
38
- "build": "echo \"no build\"",
44
+ "build": "tsc",
39
45
  "prepublish": "pnpm run build",
40
46
  "lint": "eslint src/",
41
47
  "type-check": "tsc --noEmit"
@@ -0,0 +1,41 @@
1
+ const { withInfoPlist } = require('@expo/config-plugins');
2
+
3
+ const withVortexReactNative = (config) => {
4
+ console.log('*** [withVortexReactNative] outer plugin running');
5
+
6
+ return withInfoPlist(config, (modConfig) => {
7
+ console.log('*** [withVortexReactNative] inner plugin running');
8
+
9
+ const customFonts = [
10
+ "AntDesign.ttf",
11
+ "Entypo.ttf",
12
+ "EvilIcons.ttf",
13
+ "Feather.ttf",
14
+ "FontAwesome.ttf",
15
+ "FontAwesome5_Brands.ttf",
16
+ "FontAwesome5_Regular.ttf",
17
+ "FontAwesome5_Solid.ttf",
18
+ "FontAwesome6_Brands.ttf",
19
+ "FontAwesome6_Regular.ttf",
20
+ "FontAwesome6_Solid.ttf",
21
+ "Foundation.ttf",
22
+ "Ionicons.ttf",
23
+ "MaterialIcons.ttf",
24
+ "MaterialCommunityIcons.ttf",
25
+ "SimpleLineIcons.ttf",
26
+ "Octicons.ttf",
27
+ "Zocial.ttf",
28
+ "Fontisto.ttf",
29
+ ];
30
+
31
+ const existingFonts = Array.isArray(modConfig.modResults.UIAppFonts)
32
+ ? modConfig.modResults.UIAppFonts
33
+ : [];
34
+
35
+ modConfig.modResults.UIAppFonts = Array.from(new Set([...existingFonts, ...customFonts]));
36
+
37
+ return modConfig;
38
+ });
39
+ };
40
+
41
+ module.exports = withVortexReactNative;
package/plugin.js ADDED
@@ -0,0 +1,2 @@
1
+ // plugin.js
2
+ module.exports = require('./plugin/withVortexReactNative');
package/tsconfig.json CHANGED
@@ -3,6 +3,13 @@
3
3
  "include": ["src"],
4
4
  "exclude": ["node_modules", "dist"],
5
5
  "compilerOptions": {
6
+ "outDir": "dist",
7
+ "rootDir": "src",
8
+ "declaration": true,
9
+ "declarationDir": "dist/types",
10
+ "emitDeclarationOnly": false,
11
+ "moduleResolution": "node",
12
+ "module": "CommonJS",
6
13
  "jsx": "react-native",
7
14
  "strict": true
8
15
  }