Skip to content

Commit 0abea2a

Browse files
committed
feat: add iOS configuration and React Native CLI dependency for improved project setup
1 parent 331e60e commit 0abea2a

3 files changed

Lines changed: 32 additions & 0 deletions

File tree

package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"devDependencies": {
6868
"@commitlint/config-conventional": "^17.0.2",
6969
"@evilmartians/lefthook": "^1.5.0",
70+
"@react-native-community/cli": "18.0.0",
7071
"@react-native/babel-preset": "0.79.3",
7172
"@react-native/eslint-config": "0.79.3",
7273
"@react-native/metro-config": "0.79.3",
@@ -172,6 +173,17 @@
172173
"jsSrcsDir": "./src/api",
173174
"android": {
174175
"javaPackageName": "com.iterable.reactnative"
176+
},
177+
"ios": {
178+
"headerSearchPaths": [
179+
"\"$(PODS_ROOT)/boost\"",
180+
"\"$(PODS_ROOT)/DoubleConversion\"",
181+
"\"$(PODS_ROOT)/RCT-Folly\"",
182+
"\"$(PODS_ROOT)/Headers/Public/React-Codegen/react/renderer/components\"",
183+
"\"$(PODS_ROOT)/Headers/Private/React-Fabric\"",
184+
"\"$(PODS_ROOT)/Headers/Private/React-RCTFabric\""
185+
],
186+
"podspecPath": "./Iterable-React-Native-SDK.podspec"
175187
}
176188
},
177189
"create-react-native-library": {

react-native.config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const path = require('path');
2+
3+
module.exports = {
4+
project: {
5+
ios: {
6+
automaticPodsInstallation: true,
7+
},
8+
android: {},
9+
},
10+
dependencies: {
11+
'@iterable/react-native-sdk': {
12+
root: __dirname,
13+
platforms: {
14+
ios: {},
15+
android: {},
16+
},
17+
},
18+
},
19+
};

yarn.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3097,6 +3097,7 @@ __metadata:
30973097
dependencies:
30983098
"@commitlint/config-conventional": ^17.0.2
30993099
"@evilmartians/lefthook": ^1.5.0
3100+
"@react-native-community/cli": 18.0.0
31003101
"@react-native/babel-preset": 0.79.3
31013102
"@react-native/eslint-config": 0.79.3
31023103
"@react-native/metro-config": 0.79.3

0 commit comments

Comments
 (0)