-
-
Notifications
You must be signed in to change notification settings - Fork 2
Comparing changes
Open a pull request
base repository: jonobr1/react-two.js
base: main
head repository: jonobr1/react-two.js
compare: 6-react-native
- 8 commits
- 14 files changed
- 1 contributor
Commits on Nov 19, 2025
-
Add React Native bindings and iOS Metal renderer
Introduces native bindings for React Native, including Swift-based Metal renderer for iOS (TwoMetalView, TwoRenderer, TwoViewManager), TypeScript bridge components (lib/native.ts, Provider), and supporting types. Updates package configuration and build to support native exports, adds documentation for native integration, and updates dependencies for React Native and Two.js.
Configuration menu - View commit details
-
Copy full SHA for cc2d2a0 - Browse repository at this point
Copy the full SHA cc2d2a0View commit details
Commits on Dec 4, 2025
-
Configuration menu - View commit details
-
Copy full SHA for faacc50 - Browse repository at this point
Copy the full SHA faacc50View commit details -
Refactor ref callbacks for LinearGradient and Texture
Updated ref callbacks to use explicit if statements for setting refs in LinearGradient and Texture components, improving readability and consistency.
Configuration menu - View commit details
-
Copy full SHA for fd60d26 - Browse repository at this point
Copy the full SHA fd60d26View commit details -
WIP: Add Metal renderer integration for iOS
Introduces a Metal shader (Shaders.metal) and updates TwoRenderer.swift to render Two.js scene graphs using Metal. TwoMetalView.swift now passes draw commands to the renderer. The React Native Provider implementation is enhanced to serialize the Two.js scene graph and send it to the native side, with improved type safety and event shape registration. Minor fixes in Provider.tsx improve child validation.
Configuration menu - View commit details
-
Copy full SHA for 23e77c6 - Browse repository at this point
Copy the full SHA 23e77c6View commit details
Commits on Dec 6, 2025
-
Configuration menu - View commit details
-
Copy full SHA for a3880c4 - Browse repository at this point
Copy the full SHA a3880c4View commit details -
[WIP] Add Objective-C TwoViewManager
Added TwoViewManager.m for React Native integration and updated Package.swift to include new source files. Enhanced TwoRenderer.swift to support hierarchical 2D transforms (translation, rotation, scale) and hex color parsing for shapes.
Configuration menu - View commit details
-
Copy full SHA for 1291987 - Browse repository at this point
Copy the full SHA 1291987View commit details
Commits on Feb 3, 2026
-
Configuration menu - View commit details
-
Copy full SHA for aabeacc - Browse repository at this point
Copy the full SHA aabeaccView commit details -
Add draw call handling and richer scene serialization
iOS renderer: introduce DrawCall and drawCalls array, replace parseShape with parseNode to handle groups, transforms, fills (fan triangulation), strokes (lineStrip), and per-shape opacity; expand parseHexColor to support 3-digit hex and opacity; use drawCalls to issue Metal drawPrimitives instead of a single draw. JS provider: replace serializeScene with recursive serializeNode, include more shape properties (cap, join, miter, closed, curved, automatic, beginning, ending, linewidth), serialize vertex control points, and serialize specific shape attributes (radius, width, height) to provide richer data for the native renderer.
Configuration menu - View commit details
-
Copy full SHA for bfb0f1c - Browse repository at this point
Copy the full SHA bfb0f1cView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...6-react-native