react/packages/react-native-renderer/src
Rubén Norte 9c54b29b44
Remove ReactFabricPublicInstance and used definition from ReactNativePrivateInterface (#26437)
## Summary

Now that React Native owns the definition for public instances in Fabric
and ReactNativePrivateInterface provides the methods to create instances
and access private fields (see
https://github.com/facebook/react-native/pull/36570), we can remove the
definitions from React.

After this PR, React Native public instances will be opaque types for
React and it will only handle their creation but not their definition.
This will make RN similar to DOM in how public instances are handled.

This is a new version of #26418 which was closed without merging.

## How did you test this change?

* Existing tests.
* Manually synced the changes in this PR to React Native and tested it
end to end in Meta's infra.
2023-03-22 17:54:36 +00:00
..
__mocks__/react-native/Libraries/ReactPrivate Remove ReactFabricPublicInstance and used definition from ReactNativePrivateInterface (#26437) 2023-03-22 17:54:36 +00:00
__tests__ Remove ReactFabricPublicInstance and used definition from ReactNativePrivateInterface (#26437) 2023-03-22 17:54:36 +00:00
legacy-events Avoid meta programming to initialize functions in module scope (#26388) 2023-03-14 21:00:22 -04:00
server [Float][Fizz][Fiber]: Refactor <style> Resource implementation to group on flush (#26280) 2023-03-03 12:50:35 -08:00
NativeMethodsMixinUtils.js Refactor ReactFabricHostComponent (#26323) 2023-03-07 14:33:55 +00:00
ReactFabric.js Clean interface for public instances between React and React Native (#26416) 2023-03-20 13:35:18 +00:00
ReactFabricComponentTree.js Fix use of stale props in Fabric events (#26408) 2023-03-17 11:27:49 +00:00
ReactFabricEventEmitter.js Refactor ReactFabricHostComponent (#26323) 2023-03-07 14:33:55 +00:00
ReactFabricGlobalResponderHandler.js Restore some guards in ReactFabricGlobalResponderHandler after refactor (#26394) 2023-03-15 10:30:40 +00:00
ReactFabricHostConfig.js Remove ReactFabricPublicInstance and used definition from ReactNativePrivateInterface (#26437) 2023-03-22 17:54:36 +00:00
ReactFabricInjection.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
ReactNativeAttributePayload.js [flow] enable LTI inference mode (#26104) 2023-02-09 17:07:39 -05:00
ReactNativeBridgeEventPlugin.js Removed unused imperative events implementation from React Native renderer (#26282) 2023-03-02 15:54:51 +00:00
ReactNativeComponentTree.js Fix use of stale props in Fabric events (#26408) 2023-03-17 11:27:49 +00:00
ReactNativeEventEmitter.js Avoid meta programming to initialize functions in module scope (#26388) 2023-03-14 21:00:22 -04:00
ReactNativeEventPluginOrder.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
ReactNativeFiberHostComponent.js Restore definition of NativeMethods as an object for React Native (#26341) 2023-03-08 14:37:37 +00:00
ReactNativeFiberInspector.js Remove ReactFabricPublicInstance and used definition from ReactNativePrivateInterface (#26437) 2023-03-22 17:54:36 +00:00
ReactNativeGetListener.js Removed unused imperative events implementation from React Native renderer (#26282) 2023-03-02 15:54:51 +00:00
ReactNativeGlobalResponderHandler.js Upgrade prettier (#26081) 2023-01-31 08:25:05 -05:00
ReactNativeHostConfig.js Check if suspensey instance resolves in immediate task (#26427) 2023-03-20 12:35:10 -04:00
ReactNativeInjection.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
ReactNativeInjectionShared.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
ReactNativePublicCompat.js Remove ReactFabricPublicInstance and used definition from ReactNativePrivateInterface (#26437) 2023-03-22 17:54:36 +00:00
ReactNativeRenderer.js Extract duplicated methods in Fabric and the legacy renderer to a shared module (#26319) 2023-03-06 10:51:59 +00:00
ReactNativeTypes.js Make InternalInstanceHandle type opaque in ReactNativeTypes (#26461) 2023-03-22 15:39:52 +00:00