Extensions
Extensions allow you to extend your development client with additional capabilities.
The dev menu can be extended to include extra buttons by using the registerDevMenuItems
API:
import { registerDevMenuItems } from 'expo-dev-menu';
const devMenuItems = [
{
name: 'My Custom Button',
callback: () => console.log("Hello world!")
}
];
registerDevMenuItems(devMenuItems);
This will create a new section in the dev menu that includes the buttons you have registered:
Note: Subsequent calls of registerDevMenuItems
will override all previous entries.
The EAS Updates extension provides the ability to view and load published updates in your development client.
It's now available for all development clients v0.9.0
and above. In order to install it, you'll need the most recent publish of expo updates from npm:
→
expo install expo-dev-client expo-updates
That's it! You can now view and load EAS Updates in your development build via the Extensions
panel.