-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
export function First({ navigation }: FirstScreenProps) {
const message = `Boo Hoo!` // Referencing this below in JSX crashes!
function onButtonTap() {
navigation.navigate('second');
}
return (
<gridLayout
width={"100%"}
height={"100%"}
rows={"*, auto, auto, *"}
columns={"*, 200, *"}
>
<label
row={1}
col={1}
className="info"
textAlignment={"center"}
fontSize={24}
>
<formattedString>
<span className="fas" text="" />
<span> {message} </span> <---- THIS CRASHES
</formattedString>
</label>
<button
row={2}
col={1}
fontSize={24}
textAlignment={"center"}
onTap={() => Dialogs.alert("Tap received!")}
>
Tap me for an alert
</button>
<button onTap={onButtonTap} fontSize={24} text={"Go to next screen"} />
</gridLayout>
);
}Metadata
Metadata
Assignees
Labels
No labels