Rn 086 compatibility#77
Open
CaioGouveia-Trasse wants to merge 3 commits into
Open
Conversation
Bump react to 19.2.3, react-native to 0.86.0, and typescript to ^5.9.3 (capped below 6.0.0 by @typescript-eslint/parser's peer range). Replace the discontinued @react-native-community/eslint-config and metro-react-native-babel-preset with their @react-native/* successors, add @react-native/jest-preset, and bump react-native-builder-bob to ^0.43.0 with a warning-free exports/main/module/types configuration. Drop @types/react-native (types now ship from react-native itself) and tighten peerDependencies from "*" to react >=18.0.0 and react-native >=0.72.0, reflecting what this build actually supports. Fix .eslintignore to exclude the whole example/ directory instead of just example/build — previously root `yarn lint`/`yarn test` only avoided linting/testing example/ by accident, via node_modules hoisting from the now-removed @react-native-community/eslint-config. BREAKING CHANGE: peerDependencies now require react-native >=0.72.0 and react >=18.0.0; consumers on older versions are no longer supported. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@types/react 19 no longer implicitly merges children into React.FunctionComponent prop types. Add explicit children?: React.ReactNode to every component/provider that relied on that implicit merge: Appearer, Collapser, Sticker, Transitioner, Snapper, AnimatedValueProvider, MeasurementsProvider, and HasReachedTransitionPointProvider. Replace two renamed RN APIs used across the tree: StyleSheet.absoluteFillObject -> StyleSheet.absoluteFill, and Platform.isTVOS -> Platform.isTV in constants.ts. Fix the stray import path left over from the HasReachedTransitionPoint.tsx.tsx -> .tsx rename in Container, Scroller, Appearer, and index. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Add a Compatibility section to README noting the library builds cleanly against React Native 0.86 (New Architecture required) and its new peerDependencies floor, plus a Bugs entry about StatusBar.setTranslucent() becoming a no-op under Android 15+ edge-to-edge enforcement. Note in CONTRIBUTING that example/ is still pinned to React Native 0.65.1 with an outdated Storybook/Detox/React Navigation/Reanimated stack and needs its own separate migration before it can visually validate the library on RN 0.86. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.