テストウィジェット作成

This commit is contained in:
harukin-expo-dev-env
2024-03-06 03:05:31 +00:00
parent d95eea44a4
commit d3b99535f2
7 changed files with 126 additions and 10 deletions

View File

@@ -0,0 +1,25 @@
import * as React from "react";
import { StyleSheet, View } from "react-native";
import { WidgetPreview } from "react-native-android-widget";
import { HelloWidget } from "./HelloWidget";
export function HelloWidgetPreviewScreen() {
return (
<View style={styles.container}>
<WidgetPreview
renderWidget={() => <HelloWidget />}
width={320}
height={200}
/>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: "center",
justifyContent: "center",
},
});