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:
Spencer Ahrens
2018-06-19 14:13:03 -07:00
committed by Facebook Github Bot
parent c5ce762697
commit 76eebce3c2
5 changed files with 67 additions and 90 deletions

View File

@@ -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);
}