Conditional rendering uses plain JS: ternaries for either/or, `&&` for show-or-nothing, and early returns for whole different screens (e.g. a loading screen).
function Screen({ loading, address }: { loading: boolean; address: string | null }) {
if (loading) return <Text>Loading…</Text>;
return (
<View>
{address ? <Text>{address}</Text> : <Text>Not connected</Text>}
{address && <Text>Tap to disconnect</Text>}
</View>
);
}Be careful with `&&` and numbers: `{count && <Text>...</Text>}` renders a literal `0` when `count` is 0, so prefer `{count > 0 && ...}`.