diff --git a/babel.config.js b/babel.config.js deleted file mode 100644 index 68c7d31..0000000 --- a/babel.config.js +++ /dev/null @@ -1,2 +0,0 @@ -// @generated by expo-module-scripts -module.exports = require('expo-module-scripts/babel.config.base'); diff --git a/expo-module.config.json b/expo-module.config.json deleted file mode 100644 index 79d1703..0000000 --- a/expo-module.config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "platforms": ["devtools"], - "devtools": { - "webpageRoot": "dist" - } -} diff --git a/webui/App.tsx b/webui/App.tsx deleted file mode 100644 index 41ac655..0000000 --- a/webui/App.tsx +++ /dev/null @@ -1,66 +0,0 @@ -import { useDevToolsPluginClient, type EventSubscription } from 'expo/devtools'; -import { useEffect } from 'react'; -import { Pressable, StyleSheet, Text, View } from 'react-native'; - -export default function App() { - const client = useDevToolsPluginClient('metro-bundle-plugin'); - - useEffect(() => { - const subscriptions: EventSubscription[] = []; - - subscriptions.push( - client?.addMessageListener('ping', (data) => { - alert(`Received ping from ${data.from}`); - client?.sendMessage('ping', { from: 'web' }); - }) - ); - - return () => { - for (const subscription of subscriptions) { - subscription?.remove(); - } - }; - }, [client]); - - return ( - - - That's the Web UI of the DevTools plugin. You can now edit the UI in the App.tsx. - - - For development, you can also add `devServer` query string to specify the WebSocket target - to the app's dev server. - - For example: - { - window.location.href = window.location.href + '?devServer=localhost:8080'; - }} - > - - {`${window.location.href}?devServer=localhost:8080`} - - - - ); -} - -const styles = StyleSheet.create({ - container: { - flex: 1, - backgroundColor: '#fff', - alignItems: 'center', - justifyContent: 'center', - }, - text: { - fontSize: 16, - marginBottom: 16, - }, - devHint: { - color: '#666', - }, - textLink: { - color: '#007AFF', - textDecorationLine: 'underline', - }, -});