Skip to content

build: upgrade example to React Native 0.87 and Strict TypeScript API - #571

Merged
thiagobrez merged 5 commits into
mainfrom
chore/upgrade-example-to-rn087
Sep 6, 2026
Merged

build: upgrade example to React Native 0.87 and Strict TypeScript API#571
thiagobrez merged 5 commits into
mainfrom
chore/upgrade-example-to-rn087

Conversation

@thiagobrez

Copy link
Copy Markdown
Collaborator

PR Description

Upgrade the library example from React Native 0.81 to 0.87.1, with compatible React, native dependencies, and test-app tooling. Update the Android Gradle wrapper and AGP 9 compatibility flags, configure Worklets, and support the namespaced iOS React header layout while retaining the older-header fallback.

Migrate the example to the Strict TypeScript API. Its previous module resolution silently selected the monorepo's RN 0.81 definitions; it now resolves RN 0.87's generated types. Update component refs, derive forwarded color props from TabView, and make the defaulted showLabels prop optional. Include the example in yarn typecheck and invalidate Turbo's typecheck cache when TypeScript configuration changes. The library's RN development baseline remains unchanged.

How to test?

  • yarn install --immutable
  • yarn typecheck — passes, including the example.
  • yarn lint — passes with three existing warnings.
  • yarn workspace react-native-bottom-tabs-example build:android — native build passes.
  • yarn workspace react-native-bottom-tabs-example build:ios, then build the ReactTestApp scheme in apps/example/ios/ReactNativeBottomTabsExample.xcworkspace for an iOS simulator — native build passes.

Verified with agent-device on iOS 18.6 (iPhone 16), iOS 26.5 (iPhone 17 Pro), and Android (Pixel 10 Pro): launch the home page, open Four Tabs, navigate through Article, Albums, and Contacts, and return home. All three targets render successfully without error overlays.

Clear inherited source aliases so the example uses Bob-generated package declarations. Source aliases expected a declaration path that was only present after local library typechecks, causing TS6305 in CI.
@thiagobrez
thiagobrez merged commit 6b8e865 into main Sep 6, 2026
8 checks passed
@thiagobrez
thiagobrez deleted the chore/upgrade-example-to-rn087 branch September 6, 2026 11:37
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.

1 participant