dillon1000/react
Commit
Browse files Restore definition of NativeMethods as an object for React Native (#26341)
## Summary In #26283, I changed definition of `NativeMethods` from an object to an interface. This is correct but introduces a lot of errors in React Native, so this restores the original definition and exports the fixed type as a separate type so we can gradually migrate in React Native. ## How did you test this change? Manually applied this change in React Native and validated the errors are gone.
Changed paths4 files
First-parent comparisonpackages/react-native-renderer/src/ReactFabricHostConfig.js ModifiedM packages/react-native-renderer/src/ReactNativeFiberHostComponent.js ModifiedM packages/react-native-renderer/src/ReactNativePublicCompat.js ModifiedM packages/react-native-renderer/src/ReactNativeTypes.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…