useProfiledNavigation fails with es6 enabled
ElviraBurchik opened this issue · 1 comments
ElviraBurchik commented
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:
- iOS
- Android
Packages
Which packages are affected by the issue?
- @shopify/react-native-performance
- @shopify/react-native-performance-lists-profiler
- @shopify/flipper-plugin-react-native-performance
- @shopify/react-native-performance-navigation
- @shopify/react-native-performance-navigation-bottom-tabs
- @shopify/react-native-performance-navigation-drawer
Environment
- I've removed the packages that I don't use
package | version |
---|---|
@shopify/react-native-performance | 3.0.0 |
@shopify/react-native-performance-navigation | 4.0.0 |
react-native | 0.67.4 |
ElviraBurchik commented
If anybody hits this issue, using the latest version of tslib
as a dependency fixes the problem.