Shopify / react-native-performance

Performance monitoring for React Native apps
https://shopify.github.io/react-native-performance
MIT License
915 stars 44 forks source link

useProfiledNavigation fails with es6 enabled #75

Open ElviraBurchik opened 2 years ago

ElviraBurchik commented 2 years ago

Current behavior

In an app using es6 and older version of tslib such as 1.9.3 useProfiledNavigation fails with undefined is not a function error:

Expected behavior

useProfiledNavigation doesn't fail.

Platform:

Packages

Which packages are affected by the issue?

Environment

package version
@shopify/react-native-performance 3.0.0
@shopify/react-native-performance-navigation 4.0.0
react-native 0.67.4
ElviraBurchik commented 2 years ago

If anybody hits this issue, using the latest version of tslib as a dependency fixes the problem.