dillon1000/react

Commit

Create `ReactNativeComponent` Abstract Class (#9814)

This creates `ReactNativeComponent`, the modern replacement for `NativeMethodsMixin`.

This class is going to allow us to start migrating React Native off `React.createClass(...)` into a typesafe, class-based brave new world.

This also introduces `IReactNativeComponent`, an interface that enforces consistency between `ReactNativeComponent` and `ReactNativeFiberHostComponent`.
Browse files
Changed paths4 files
First-parent comparison
A src/renderers/native/ReactNativeComponent.js AddedM src/renderers/native/ReactNativeFiber.js ModifiedM src/renderers/native/ReactNativeStack.js ModifiedM src/renderers/native/ReactNativeTypes.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…