Skip to content

Commit f1c5792

Browse files
chore: improve-example-app (#39)
* chore: improve-example-app * chore: improve-example-app * chore: improve-example-app
1 parent d32bc53 commit f1c5792

15 files changed

+1884
-851
lines changed

bun.lock

Lines changed: 50 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ export default defineConfig([
3535
'**/metro.config.js',
3636
'**/react-native.config.js',
3737
'**/babel.config.js',
38+
'.yarn/**',
39+
'eslint.config.mjs',
3840
],
3941
},
4042
]);

example/jest.harness.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export default {
2-
preset: 'react-native-harness',
3-
};
2+
preset: 'react-native-harness',
3+
};

example/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@
1111
"test:harness": "react-native-harness"
1212
},
1313
"dependencies": {
14+
"@react-navigation/bottom-tabs": "^7.15.5",
15+
"@react-navigation/native": "^7.1.33",
16+
"@react-navigation/native-stack": "^7.14.5",
1417
"react": "19.2.3",
1518
"react-native": "0.85.0-rc.0",
1619
"react-native-harness": "^1.0.0-alpha.25",
1720
"react-native-nitro-fetch": "workspace:*",
1821
"react-native-nitro-modules": "^0.29.8",
19-
"react-native-safe-area-context": "^5.5.2",
22+
"react-native-safe-area-context": "^5.7.0",
23+
"react-native-screens": "^4.24.0",
2024
"react-native-worklets-core": "^1.6.2"
2125
},
2226
"devDependencies": {
@@ -42,5 +46,3 @@
4246
"node": ">=22.11.0"
4347
}
4448
}
45-
46-

example/rn-harness.config.mjs

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
11
import {
2-
androidPlatform,
3-
androidEmulator,
4-
} from '@react-native-harness/platform-android';
5-
import {
6-
applePlatform,
7-
appleSimulator,
8-
} from '@react-native-harness/platform-apple';
9-
10-
const config = {
11-
entryPoint: './index.js',
12-
appRegistryComponentName: 'NitroFetchExample',
13-
14-
runners: [
15-
androidPlatform({
16-
name: 'android',
17-
device: androidEmulator('Pixel_8_API_35'), // Your Android emulator name
18-
bundleId: 'nitrofetch.example', // Your Android bundle ID
19-
}),
20-
applePlatform({
21-
name: 'ios',
22-
device: appleSimulator('iPhone 17 Pro', '26.2'), // Your iOS simulator name and version
23-
bundleId: 'nitrofetch.example', // Your iOS bundle ID
24-
})
25-
],
26-
defaultRunner: "android",
27-
bridgeTimeout: 180000,
28-
29-
};
30-
31-
export default config;
2+
androidPlatform,
3+
androidEmulator,
4+
} from '@react-native-harness/platform-android';
5+
import {
6+
applePlatform,
7+
appleSimulator,
8+
} from '@react-native-harness/platform-apple';
9+
10+
const config = {
11+
entryPoint: './index.js',
12+
appRegistryComponentName: 'NitroFetchExample',
13+
14+
runners: [
15+
androidPlatform({
16+
name: 'android',
17+
device: androidEmulator('Pixel_8_API_35'), // Your Android emulator name
18+
bundleId: 'nitrofetch.example', // Your Android bundle ID
19+
}),
20+
applePlatform({
21+
name: 'ios',
22+
device: appleSimulator('iPhone 17 Pro', '26.2'), // Your iOS simulator name and version
23+
bundleId: 'nitrofetch.example', // Your iOS bundle ID
24+
}),
25+
],
26+
defaultRunner: 'android',
27+
bridgeTimeout: 180000,
28+
};
29+
30+
export default config;

0 commit comments

Comments
 (0)