File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -31,24 +31,25 @@ APP_NAME=MyAwesomeApp
3131
3232---
3333
34- # iOS
35- ``` bash
34+ ## 🍏 iOS
35+
3636### 1. Install CocoaPods dependencies:
37- cd ./ios
37+ ``` bash
38+ cd ./ios
3839pod install
40+ ```
3941
4042### 2. Add the custom script to Xcode Build Phases:
41- Open Xcode → select your Target → go to Build Phases → click + New Run Script Phase
43+ Open Xcode → select your Target → go to ** Build Phases** → click ** + New Run Script Phase**
4244and paste the following command:
43-
45+ ``` bash
4446bash " ${SRCROOT} /../node_modules/react-native-config-jsi/src/scripts/generate-xcconfig.sh"
45-
46-
4747```
4848
4949---
5050
51- # Android
51+ ## 🤖 Android
52+
5253At the ** bottom** of ` android/app/build.gradle ` , add the following line:
5354
5455``` gradle
@@ -69,9 +70,11 @@ import { RNConfig } from "react-native-config-jsi";
6970const apiKey = RNConfig .get (" API_KEY" );
7071console .log (" API_KEY:" , apiKey);
7172```
73+
7274---
7375
7476## ⚡ Features
77+
7578- ✅ ** Blazing fast** thanks to JSI (JavaScript Interface)
7679- ✅ ** Written in C++** for performance optimization
7780- ✅ ** No async calls** – variables are accessed synchronously
@@ -80,8 +83,9 @@ console.log("API_KEY:", apiKey);
8083---
8184
8285## 📜 License
86+
8387MIT
8488
8589---
8690
87- Now you' re all set! 🎉 Happy coding with **react-native-config-jsi**! 🚀
91+ Now you're all set! 🎉 Happy coding with ** react-native-config-jsi** ! 🚀
You can’t perform that action at this time.
0 commit comments