名変更
This commit is contained in:
parent
9447678f85
commit
9df3d0c62a
@ -5,7 +5,7 @@ import {
|
|||||||
ListWidget,
|
ListWidget,
|
||||||
} from "react-native-android-widget";
|
} from "react-native-android-widget";
|
||||||
|
|
||||||
export function InfoWidget({ time, delayString }) {
|
export function InfoWidget({ time, text }) {
|
||||||
return (
|
return (
|
||||||
<FlexWidget
|
<FlexWidget
|
||||||
style={{
|
style={{
|
||||||
@ -61,7 +61,7 @@ export function InfoWidget({ time, delayString }) {
|
|||||||
padding: 10,
|
padding: 10,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{delayString ? (
|
{text ? (
|
||||||
<FlexWidget
|
<FlexWidget
|
||||||
style={{
|
style={{
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
@ -71,7 +71,7 @@ export function InfoWidget({ time, delayString }) {
|
|||||||
}}
|
}}
|
||||||
clickAction="WIDGET_CLICK"
|
clickAction="WIDGET_CLICK"
|
||||||
>
|
>
|
||||||
<FlexText flex={3} text={delayString} />
|
<FlexText flex={3} text={text} />
|
||||||
</FlexWidget>
|
</FlexWidget>
|
||||||
) : (
|
) : (
|
||||||
<TextWidget
|
<TextWidget
|
||||||
|
@ -74,7 +74,7 @@ export async function widgetTaskHandler(props) {
|
|||||||
}
|
}
|
||||||
case "Info_Widget": {
|
case "Info_Widget": {
|
||||||
const { time, text } = await getInfoString();
|
const { time, text } = await getInfoString();
|
||||||
renderWidget(<InfoWidget time={time} delayString={text} />);
|
renderWidget(<InfoWidget time={time} text={text} />);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
Loading…
Reference in New Issue
Block a user