You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wrapping HeapNavigationContainer around the standard NavigationContainer through Heap.withReactNavigationAutotrack causes the application to refresh/reload, whenever a native popup is triggered for permissions to access native modules like the camera, photo library. We have several authentication providers that use OAuth authentication flows through async function calls with awaits to authenticate the user.
Jest tests fail with an error when using the provided babel configuration: Components/Touchable/TouchableNativeFeedback.js: Cannot read property 'end' of null. There are no events defined in the entire application manually (we integrated Heap following the docs for auto-capturing events).
The text was updated successfully, but these errors were encountered:
The issue is likely that Heap.withReactNavigationAutotrack is being called inside a function (likely App). Any time that App executes, HeapNavigationContainer is a new component class causing the whole navigation container to be reconstructed.
The fix is to move the definition out of the function. E.g.:
Our environment
Our findings on both iOS and Android
Wrapping
HeapNavigationContainer
around the standardNavigationContainer
throughHeap.withReactNavigationAutotrack
causes the application to refresh/reload, whenever a native popup is triggered for permissions to access native modules like the camera, photo library. We have several authentication providers that use OAuth authentication flows throughasync
function calls withawaits
to authenticate the user.Jest tests fail with an error when using the provided babel configuration:
Components/Touchable/TouchableNativeFeedback.js: Cannot read property 'end' of null
. There are no events defined in the entire application manually (we integrated Heap following the docs for auto-capturing events).The text was updated successfully, but these errors were encountered: