Skip to content

Modernize React Native examples - #14

Merged
yjose merged 1 commit into
yjose:mainfrom
frovere:codex/fix-react-native-examples
Jun 18, 2026
Merged

Modernize React Native examples#14
yjose merged 1 commit into
yjose:mainfrom
frovere:codex/fix-react-native-examples

Conversation

@frovere

@frovere frovere commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

What changed

  • migrate the example app from removed React Native core SafeAreaView to react-native-safe-area-context
  • replace legacy touchables and the mapped ScrollView with Pressable and FlatList
  • use explicit slot keys across OTP examples
  • move repeating Reanimated caret values to useDerivedValue
  • remove an unused example component and hoist static example metadata

Why

The example app used APIs and rendering patterns that React Doctor identified as deprecated or error-prone. These updates keep the public library API unchanged while making the examples compatible with current React Native and easier to maintain.

Documentation example pages import these source files directly, so they receive the same corrected snippets.

Validation

  • yarn typecheck
  • yarn lint
  • yarn test --runInBand — 48 tests passed
  • yarn workspace docs build
  • npx react-doctor@latest --verbose — 100/100, no issues

@frovere
frovere marked this pull request as ready for review June 18, 2026 16:35
@yjose
yjose self-requested a review June 18, 2026 17:08
@yjose
yjose merged commit 89cf179 into yjose:main Jun 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants