Quick Start
This guide will help you set up React Native Beagle and start logging in your app.Basic Setup
Wrap your app with BeagleProvider
Import the The
BeagleProvider component and wrap your app’s root component:BeagleProvider initializes Beagle and makes it available throughout your app via React Context.Add a way to open the inspector
By default, Beagle does not open automatically. You can add a button or use a gesture (like shaking the device) to trigger it manually.Here’s an example using the
useBeagle hook and a button:The
useBeagle hook provides access to the showInspector method to open the inspector UI.Log your first messages
Use the Network requests are logged automatically, so you don’t need to do anything extra to track API calls.
Beagle API to log messages and errors:Open the inspector and view logs
Tap the button you created (or trigger your custom gesture) to open the Beagle inspector. You’ll see:
- All logged messages and errors
- Automatic network request logs with full details
- The ability to filter, search, and export logs
- Detailed views with headers, bodies, and timing information
What’s Next?
You’ve successfully set up React Native Beagle! Here are some next steps:Create Custom Plugins
Learn how to create custom plugins to log analytics events, feature flags, or other custom data.
Customize Detail Pages
Design custom detail pages for your log types using Beagle’s flexible content system.
Configure Themes
Customize the inspector UI with light and dark themes to match your app’s design.
Export and Share Logs
Learn how to export logs as JSON for sharing with your team or further analysis.