Skip to content

Instantly share code, notes, and snippets.

@brunosabot
Created September 12, 2020 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunosabot/b80ccc2e6eb3122ee8a4a32b2b789b00 to your computer and use it in GitHub Desktop.
Save brunosabot/b80ccc2e6eb3122ee8a4a32b2b789b00 to your computer and use it in GitHub Desktop.
import React from "react";
import { Text, View } from "react-native";
export default function Flex() {
return (
<View style={{ flexDirection: "row", alignItems: "center" }}>
<Text>✓</Text>
<Text style={{ flexGrow: 1 }}>Hello world</Text>
</View>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment