My Custom Panel
This is my custom DevTools panel!
);
}
```
### Using the Plugin Bridge
[Section titled “Using the Plugin Bridge”](#using-the-plugin-bridge)
Connect your panel to React Native using the plugin bridge. The `RozeniteDevToolsClient` provides full TypeScript support for type-safe communication:
src/my-panel.tsx
```typescript
import React, { useEffect, useState } from 'react';
import { useRozeniteDevToolsClient } from '@rozenite/plugin-bridge';
// Define type-safe event map
interface PluginEvents {
'user-data': {
id: string;
name: string;
email: string;
};
'request-user-data': {
type: 'userInfo';
};
}
export default function MyPanel() {
const client = useRozeniteDevToolsClient