shirakaba / react-nativescript

React renderer for NativeScript
https://react-nativescript.netlify.com
MIT License
280 stars 14 forks source link

Ensure that displayName is working on ref-forwarded components (for logging purposes) #23

Closed shirakaba closed 5 years ago

shirakaba commented 5 years ago

Might be working already, but need to check.

With reference to:

May be a case for using a Mixin or decorator.

shirakaba commented 5 years ago

I've witnessed in React Devtools that all ref-forwarding components retain the name of the class they're forwarding to (the name as exported – e.g. _Page – not as imported), even with ref-forwarding involved. The names are similar enough that it's not a problem for me; at least they're not mangled.