@@ -205,7 +205,37 @@ yarn build
205205
206206</details >
207207
208- ## 9. Integrate SDK into ` /app `
208+ ## 9. Sample applications
209+
210+ <details >
211+ <summary ><strong >Add React Native sample</strong ></summary >
212+
213+ 1 . Under ` samples/react-native/ ` , scaffold a bare-bones app using Expo or React Native CLI.
214+ 2 . Demonstrate MRZ scanning and registration flow using SDK APIs.
215+ 3 . Include instructions in a ` README.md ` .
216+
217+ </details >
218+
219+ <details >
220+ <summary ><strong >Add web sample</strong ></summary >
221+
222+ 1 . Under ` samples/web/ ` , set up a Vite/React project showing browser-based MRZ input and proof generation.
223+ 2 . Document setup and build steps.
224+
225+ </details >
226+
227+ <details >
228+ <summary ><strong >Configure OpenPassport scheme</strong ></summary >
229+
230+ 1 . In the React Native sample's iOS project, add URL type ` OpenPassport ` to ` Info.plist ` .
231+ 2 . Document Android intent filters (AndroidManifest.xml). Ensure scheme uniqueness and validate redirect origins to prevent hijacking.
232+ 3 . Choose a scheme unique to your app (e.g., using reverse-domain or app-identifier prefix).
233+ 4 . Detect and handle collisions (fallback checks, verify caller package/signature).
234+ 5 . Verify redirect domains and consider app-claimed links/Android App Links and iOS Universal Links for stronger security.
235+
236+ </details >
237+
238+ ## 10. Integrate SDK into ` /app `
209239
210240<details >
211241<summary ><strong >Integrate SDK in /app</strong ></summary >
@@ -216,3 +246,16 @@ yarn build
2162464 . Validate builds and unit tests in the ` app ` workspace.
217247
218248</details >
249+
250+ ## 11. In-SDK lightweight demo
251+
252+ <details >
253+ <summary ><strong >Create embedded demo app</strong ></summary >
254+
255+ 1 . Scaffold ` demo/ ` under the SDK as a minimal React Native project.
256+ 2 . Use SDK APIs for MRZ → proof flow.
257+ 3 . Expose simple theming configuration.
258+ 4 . Add ` demo/README.md ` with build/run instructions.
259+ 5 . Add publishing guardrails: exclude ` demo/ ` from npm and add a CI step to verify the published tarball contents.
260+
261+ </details >
0 commit comments