Created
November 20, 2020 15:02
-
-
Save meienberger/6cedd580011a3e4a1bc8eb40bd283fff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { Image } from 'react-native' | |
import { | |
View, | |
Text, | |
SafeAreaView, | |
createPicassoComponent, | |
} from 'react-native-picasso' | |
const PicassoImage = createPicassoComponent(Image) | |
const App = () => { | |
return ( | |
<SafeAreaView className="flex-1"> | |
<View className="flex-row p-md alignitems-center"> | |
<PicassoImage | |
className="radius-round mr-md b-5 bordercolor-secondary" | |
style={{ height: 100, width: 100 }} | |
source={{ uri: 'https://picsum.photos/200/300' }} | |
/> | |
<View> | |
<Text className="align-left size-lg weight-bold"> | |
Nicolas Meienberger | |
</Text> | |
<Text className="align-left size-md color-secondary"> | |
Geneva, Switzerland | |
</Text> | |
</View> | |
</View> | |
<View className="flex-1 bg-background alignitems-center justifycontent-center bt-5 bordercolor-primary"> | |
<Text className="color-primary size-lg weight-extrabold"> | |
Welcome to Picasso | |
</Text> | |
</View> | |
</SafeAreaView> | |
) | |
} | |
export default App |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment