- @react-native/metro-config metro配置(代替expo/ExpoMetroConfig) - index.js纯JS入口(避免TS编译依赖) - metro.config.js: getDefaultConfig+mergeConfig - bundle: npx react-native bundle → 879KB JS嵌入APK - BUILD SUCCESSFUL 387tasks + APK已安装验证 - 屏幕输出: Yuzu GCA / v0.1.0 / expo-updates active
21 lines
750 B
TypeScript
21 lines
750 B
TypeScript
import { StatusBar } from 'expo-status-bar';
|
|
import { Text, View, StyleSheet } from 'react-native';
|
|
|
|
export default function App() {
|
|
return (
|
|
<View style={styles.container}>
|
|
<StatusBar style="light" />
|
|
<Text style={styles.title}>Yuzu GCA</Text>
|
|
<Text style={styles.version}>v0.1.0-dav-android-8</Text>
|
|
<Text style={styles.subtitle}>expo-updates 热更新已激活</Text>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: { flex: 1, backgroundColor: '#0f172a', alignItems: 'center', justifyContent: 'center' },
|
|
title: { fontSize: 28, fontWeight: '800', color: '#e2e8f0' },
|
|
version: { fontSize: 14, color: '#64748b', marginTop: 8 },
|
|
subtitle: { fontSize: 12, color: '#3b82f6', marginTop: 16 },
|
|
});
|