mirror of https://github.com/msgbyte/tailchat
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			28 lines
		
	
	
		
			544 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			28 lines
		
	
	
		
			544 B
		
	
	
	
		
			TypeScript
		
	
import React from 'react';
 | 
						|
import { StyleSheet } from 'react-native';
 | 
						|
import Constants from 'expo-constants';
 | 
						|
import { WebView } from 'react-native-webview';
 | 
						|
 | 
						|
/**
 | 
						|
 * Tailchat的主要内容
 | 
						|
 *
 | 
						|
 * 由webview提供
 | 
						|
 */
 | 
						|
 | 
						|
export const AppMain: React.FC = React.memo(() => {
 | 
						|
  return (
 | 
						|
    <WebView
 | 
						|
      style={styles.webview}
 | 
						|
      source={{ uri: 'https://nightly.paw.msgbyte.com/' }}
 | 
						|
    />
 | 
						|
  );
 | 
						|
});
 | 
						|
AppMain.displayName = 'AppMain';
 | 
						|
 | 
						|
const styles = StyleSheet.create({
 | 
						|
  webview: {
 | 
						|
    flex: 1,
 | 
						|
    marginTop: Constants.statusBarHeight,
 | 
						|
  },
 | 
						|
});
 |