Open
Description
Hi all, I need bit of a help when using stacktrace-js in my React Native project.
Working with with Simulator iPhone 14 Pro, iOS 16.2.
"dependencies": {
"@react-navigation/bottom-tabs": "6.0.9",
"@react-navigation/native": "6.0.6",
"@react-navigation/stack": "6.0.11",
"hermes-engine": "0.11.0",
"jetifier": "2.0.0",
"react": "18.1.0",
"react-native": "0.70.6",
"stacktrace-js": "2.0.0"
}
When using StackTrace.fromError and setting offline=true I get this as the first object in a stack array
{
"columnNumber":32,
"fileName":"http://.../index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.myapp",
"functionName":"onPress",
"lineNumber":101677,
"source":" at onPress (http://.../index.bundleplatform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.myapp:101677:32)"
},
If I set the offline option to false I get this:
{
"columnNumber":60,
"fileName":"http://.../myapp/src/screens/MainScreen.tsx",
"functionName":"MainScreen",
"lineNumber":36
},
What I get when using offline=false aligns with logbox message.
Can anyone explain why I get the difference, and why is in offline=false mode functionName the same as the screen name?
Metadata
Metadata
Assignees
Labels
No labels