mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-22 19:48:56 +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
@@ -267,7 +267,6 @@ const Text = (
|
||||
) => {
|
||||
return <TouchableText {...props} forwardedRef={forwardedRef} />;
|
||||
};
|
||||
Text.displayName = 'Text'; // TODO(T30332650) remove bug workaround
|
||||
// $FlowFixMe - TODO T29156721 `React.forwardRef` is not defined in Flow, yet.
|
||||
const TextToExport = React.forwardRef(Text);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user