mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: unstable_hasComponent(component) first registers the component with react native, if possible. Then, it returns you whether registration succeeded. ## Problem For unregistered components, the initial call returns false. But, all subsequent calls return true. The reason why: After the initial call fails, react native registers unimplemented view under that component name. So, all subsequent calls return true. ## Solution Just record the initial loopup result. And always return that initial lookup result from this method. Changelog: [iOS][Fixed] Fix bug: unstable_hasComponent(*) = true for unregistered components for n > 1th call. Reviewed By: yungsters Differential Revision: D73127468 fbshipit-source-id: ee30bde486a6bb970f40f654c65a8946452f49b3
Where is the template?
The React Native Template has moved from being shipping inside the react-native package to it's own package: @react-native-community/template.
Why has it moved?
The React Native Frameworks RFC0759 provides background information.
When was it moved?
The 0.75 release.