Skip to content

Rn 085 compat#183

Open
leaguefun wants to merge 8 commits into
azesmway:mainfrom
leaguefun:rn-085-compat
Open

Rn 085 compat#183
leaguefun wants to merge 8 commits into
azesmway:mainfrom
leaguefun:rn-085-compat

Conversation

@leaguefun
Copy link
Copy Markdown

  • 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

leaguefun and others added 8 commits June 3, 2026 22:53
- 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>
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