mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 12:34:17 +00:00
ad15b74aae
Summary:This is just the JS part of a bug reporting module that can be used with a pure JS flow or a native reporting flow. It's handy for grabbing data from a bunch of random components, like the ids of the rows that are visible in a list view at the time the bug is reported, or a description of the current navigation stack. It's initialized in `AppRegistry` so it's always ready to go and bug reports will always include the universal `runApplication` info, but won't actually do anything by default unless `collectExtraData` is called. Note: some apps may call `runApplication` multiple times if they have multiple react native root views. This will just overwrite the source so it will just report the most recently mounted one. Reviewed By: foghina Differential Revision: D3200203 fb-gh-sync-id: 8ed45fc9b289e8d9c50d3c85926213bd245d3ecc fbshipit-source-id: 8ed45fc9b289e8d9c50d3c85926213bd245d3ecc