Files
Yuzu-GCA/packages/client-android/App.tsx
LukeMackin 79a1d306ee feat: expo-updates热更新完整实现 — Metro bundle嵌入APK
- @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
2026-07-20 23:21:29 +08:00

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