Rn 085 compat#183
Open
leaguefun wants to merge 8 commits into
Open
Conversation
leaguefun
commented
Jun 3, 2026
- Remove contradictory windowScene:nil + makeKeyAndVisible sequence
- Hide Unity's window instead, restore RN window as key
- Add rootView directly to self instead of back to Unity's window
- Add visible debug label to show init status on-screen
- Support iOS 13+ scene-based window discovery
- Fix UnityView props to extend ViewProps (enables style typing without manual .d.ts workarounds) - Add troubleshooting section for common iOS/Android integration issues - Improve podspec prepare_command with warning when Unity framework missing - Include pre-built lib/ for GitHub-based installs - Update package metadata for fork Based on upstream v1.0.11 (azesmway/react-native-unity)
The types field pointed to lib/typescript/index.d.ts but the actual generated file is at lib/typescript/src/index.d.ts. This caused TypeScript to not find declarations when installed from GitHub.
- Remove buildscript block with hardcoded AGP 7.4.2 (conflicts with host project's AGP version) - Remove jcenter() repository (removed in Gradle 9.x) - Replace deprecated lintOptions with lint block
In Unity 6+, UnityPlayer no longer extends FrameLayout directly. The requestFrame() fallback tried to return unityPlayer as FrameLayout which caused a compilation error. Now tries getView() via reflection as an intermediate fallback, then instanceof check for legacy versions.
- Remove contradictory windowScene:nil + makeKeyAndVisible sequence - Hide Unity's window instead, restore RN window as key - Add rootView directly to self instead of back to Unity's window - Add visible debug label to show init status on-screen - Support iOS 13+ scene-based window discovery Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Without componentProvider mapping, RNUnityView is not registered in RCTThirdPartyComponentsProvider and the native view is never created. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <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.