-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
import React from 'react';
import { SafeAreaView, View, StyleSheet, Text } from 'react-native';
import { WebView } from 'react-native-webview';
export default function App() {
return (
{/* User Board */}
User Board
<WebView
source={{ uri: 'http://192.168.0.105:5000/frontend/index.html' }}
style={styles.webview}
/>
{/* Admin Panel */}
<Text style={styles.header}>Admin Panel</Text>
<View style={styles.webviewContainer}>
<WebView
source={{ uri: 'http://192.168.0.105:5000/frontend/admin.html' }}
style={styles.webview}
/>
</View>
</SafeAreaView>
);
}
const styles = StyleSheet.create({
container: { flex: 1 },
header: {
fontSize: 16,
fontWeight: 'bold',
textAlign: 'center',
marginVertical: 4
},
webviewContainer: {
flex: 1,
borderWidth: 1,
borderColor: '#ccc',
margin: 2
},
webview: { flex: 1 }
});
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels