mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Fix more forwardRef displayNames
Summary: See https://reactjs.org/docs/forwarding-refs.html#displaying-a-custom-name-in-devtools reapply of D8342904 Reviewed By: yungsters Differential Revision: D8465006 fbshipit-source-id: f196f39b9b1c9bbe16a845667ebbdb21953a5848
This commit is contained in:
committed by
Facebook Github Bot
parent
c5ce762697
commit
76eebce3c2
@@ -45,7 +45,6 @@ if (__DEV__) {
|
||||
</TextAncestor.Consumer>
|
||||
);
|
||||
};
|
||||
View.displayName = 'View'; // TODO(T30332650) remove bug workaround
|
||||
// $FlowFixMe - TODO T29156721 `React.forwardRef` is not defined in Flow, yet.
|
||||
ViewToExport = React.forwardRef(View);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user