dillon1000/react

Commit

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.
Browse files
Changed paths4 files
First-parent comparison
M packages/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 Modified
Patch

Files changed

Rendering syntax-highlighted changes…