Skip to content

Primacy admin #651

@daliytakaincomefatimajannat555-collab

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 }
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions