You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/src/docs/getting-started/quick-start.mdx
+6-21Lines changed: 6 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,8 @@ Create a `rn-harness.config.mjs` file in your project root:
18
18
19
19
```javascript
20
20
constconfig= {
21
+
entryPoint:'./index.js',
22
+
appRegistryComponentName:'YourAppName',
21
23
include: ['./src/**/*.harness.{js,ts,jsx,tsx}'],
22
24
23
25
runners: [
@@ -40,7 +42,9 @@ const config = {
40
42
exportdefaultconfig;
41
43
```
42
44
43
-
For detailed information about all configuration options, see the [Configuration](/docs/getting-started/configuration) page.
45
+
:::tip App Integration
46
+
The `entryPoint` and `appRegistryComponentName` properties tell React Native Harness how to locate and integrate with your React Native app. See the [Configuration](/docs/getting-started/configuration) page for detailed information about these and all other configuration options.
47
+
:::
44
48
45
49
### 2. Update Metro Configuration
46
50
@@ -70,33 +74,14 @@ module.exports = {
70
74
};
71
75
```
72
76
73
-
### 4. Update Your Entry Point
74
-
75
-
Add a conditional entry point to your `index.js` or main entry file. This allows React Native Harness to take over the app when needed and run tests.
0 commit comments