ウィジェットの調整
This commit is contained in:
parent
7a9d30b128
commit
de37b3698c
@ -69,18 +69,9 @@ export function HelloWidget({ time, delayString }) {
|
||||
clickAction="WIDGET_CLICK"
|
||||
key={data[1]}
|
||||
>
|
||||
<TextWidget
|
||||
style={{ flex: 15, fontSize: 20, color: "#000000" }}
|
||||
text={data[0].replace("\n", "")}
|
||||
/>
|
||||
<TextWidget
|
||||
style={{ flex: 5, fontSize: 20, color: "#000000" }}
|
||||
text={data[1]}
|
||||
/>
|
||||
<TextWidget
|
||||
style={{ flex: 6, fontSize: 20, color: "#000000" }}
|
||||
text={data[3]}
|
||||
/>
|
||||
<FlexText flex={15} text={data[0].replace("\n", "")} />
|
||||
<FlexText flex={5} text={data[1]} />
|
||||
<FlexText flex={6} text={data[2]} />
|
||||
</FlexWidget>
|
||||
);
|
||||
})
|
||||
@ -98,3 +89,9 @@ export function HelloWidget({ time, delayString }) {
|
||||
</FlexWidget>
|
||||
);
|
||||
}
|
||||
|
||||
const FlexText = ({ flex, text }) => (
|
||||
<FlexWidget style={{ flex }}>
|
||||
<TextWidget style={{ fontSize: 20, color: "#000000" }} text={text} />
|
||||
</FlexWidget>
|
||||
);
|
||||
|
@ -9,7 +9,7 @@ export function HelloWidgetPreviewScreen() {
|
||||
<View style={styles.container}>
|
||||
<WidgetPreview
|
||||
renderWidget={() => <HelloWidget />}
|
||||
width={320}
|
||||
width={200}
|
||||
height={200}
|
||||
/>
|
||||
</View>
|
||||
|
Loading…
Reference in New Issue
Block a user