You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportfunctionFirst({ navigation }: FirstScreenProps){constmessage=`Boo Hoo!`// Referencing this below in JSX crashes!functiononButtonTap(){navigation.navigate('second');}return(<gridLayoutwidth={"100%"}height={"100%"}rows={"*, auto, auto, *"}columns={"*, 200, *"}><labelrow={1}col={1}className="info"textAlignment={"center"}fontSize={24}><formattedString><spanclassName="fas"text=""/><span>{message}</span> <---- THIS CRASHES</formattedString></label><buttonrow={2}col={1}fontSize={24}textAlignment={"center"}onTap={()=>Dialogs.alert("Tap received!")}>Tapmeforanalert</button><buttononTap={onButtonTap}fontSize={24}text={"Go to next screen"}/></gridLayout>
);}
The text was updated successfully, but these errors were encountered:
I believe this is rather due to not supporting text nodes as children of <span> (as we found over Slack that using the text property instead gets it to work).
@Lelelo1 I haven’t checked, but I would guess both – both should lead to the text content being passed into React.createElement as children (rather than as the “text” prop).
The text was updated successfully, but these errors were encountered: