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
In the piece of code below, when isOn is true, A should be left aligned. When isOn is false B should be centered. B is left aligned now. The markup below works, because if you add an ! before isOn the result is flipped and B is centered. But then A is incorrect.
{isOn ? (<Containerheight={70}marginTop={10}justifyContent={Justify.SpaceBetween}flexDirection={FlexDirection.Row}><Text>
A
</Text></Container>) : (<Containerheight={75}alignContent={Align.FlexStart}padding={10}><TextfontSize={20}textAlign="center">
B
</Text></Container>)
The text was updated successfully, but these errors were encountered:
In the piece of code below, when isOn is true, A should be left aligned. When isOn is false B should be centered. B is left aligned now. The markup below works, because if you add an
!
before isOn the result is flipped and B is centered. But then A is incorrect.The text was updated successfully, but these errors were encountered: