Skip to content

Commit deaa797

Browse files
Rishab RishabRishab Rishab
authored andcommitted
feat: add expo plugin support
1 parent 5bcecdb commit deaa797

File tree

3 files changed

+4054
-1512
lines changed

3 files changed

+4054
-1512
lines changed

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
22
"name": "rn-encryption",
3-
"version": "2.5.0",
3+
"version": "2.5.1",
44
"description": "Encryption",
55
"source": "./src/index.tsx",
66
"main": "./lib/commonjs/index.js",
77
"module": "./lib/module/index.js",
8+
"expo": {
9+
"plugin": "plugin/withEncryption"
10+
},
811
"exports": {
912
".": {
1013
"import": {
@@ -83,6 +86,7 @@
8386
},
8487
"devDependencies": {
8588
"@evilmartians/lefthook": "^1.5.0",
89+
"@expo/config-plugins": "^8.0.0",
8690
"@react-native-community/cli": "15.0.1",
8791
"@react-native/eslint-config": "^0.73.1",
8892
"@release-it/conventional-changelog": "^9.0.2",
@@ -92,6 +96,7 @@
9296
"eslint": "^8.51.0",
9397
"eslint-config-prettier": "^9.0.0",
9498
"eslint-plugin-prettier": "^5.0.1",
99+
"expo": "^51.0.0",
95100
"jest": "^29.7.0",
96101
"prettier": "^3.0.3",
97102
"react": "18.3.1",
@@ -105,6 +110,7 @@
105110
"@types/react": "^18.2.44"
106111
},
107112
"peerDependencies": {
113+
"expo": ">=49",
108114
"react": "*",
109115
"react-native": "*"
110116
},

plugin/withEncryption.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// plugin/withEncryption.ts
2+
import type { ConfigPlugin } from 'expo/config-plugins';
3+
4+
const withEncryption: ConfigPlugin = (config) => {
5+
// No extra changes needed (no permissions, no Info.plist edits, etc.)
6+
// Just return config untouched so Expo knows the plugin exists
7+
return config;
8+
};
9+
10+
export default withEncryption;

0 commit comments

Comments
 (0)