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: example/native-method/react-native/README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,20 @@
1
1
This is a new [**React Native**](https://reactnative.dev) project, bootstrapped using [`@react-native-community/cli`](https://github.com/react-native-community/cli).
2
2
3
+
## Bridge middleware example
4
+
5
+
`App.tsx` chains request logging, WebView URL authorization, and external URL
6
+
normalization with `bridge(...).use(...)`. The paired `../react` app exercises
7
+
the chain before opening a real native InAppBrowser.
8
+
9
+
From the repository root, run the middleware integration tests with:
10
+
11
+
```bash
12
+
pnpm --filter @webview-bridge-example-native-method/react-native test --runInBand
13
+
```
14
+
15
+
In the running example, a scheme-less URL is normalized to HTTPS, while the
16
+
**Try blocked scheme** action is rejected before native browser code runs.
17
+
3
18
# Getting Started
4
19
5
20
>**Note**: Make sure you have completed the [React Native - Environment Setup](https://reactnative.dev/docs/environment-setup) instructions till "Creating a new application" step, before proceeding.
0 commit comments