diff --git a/package.json b/package.json index 301f23f..56e2735 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "start": "expo start", "start:tunnel": "expo start --tunnel --android", "start:devClient": "npx expo start --dev-client --android", - "web": "expo start --web" + "web": "expo start --web", + "postinstall": "zx scripts/fix-gradle.mjs" }, "dependencies": { "@react-native-async-storage/async-storage": "1.21.0", diff --git a/scripts/fix-gradle.mjs b/scripts/fix-gradle.mjs new file mode 100644 index 0000000..062d1a3 --- /dev/null +++ b/scripts/fix-gradle.mjs @@ -0,0 +1 @@ +await $`find ./node_modules -name "build.gradle" -exec sed -i 's/kotlinVersion()/kotlinVersion/g' {} +`;