Created
October 16, 2019 09:02
-
-
Save gHashTag/46b76ca030690b4194b50a06b9b26cc3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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, { memo } from 'react' | |
| import { StyleSheet, Text, View } from 'react-native' | |
| import { BLUE } from '../../constants' | |
| const styles = StyleSheet.create({ | |
| container: { | |
| alignItems: 'center', | |
| margin: 10 | |
| }, | |
| h1: { | |
| color: BLUE, | |
| fontFamily: '3270Narrow', | |
| fontSize: 20 | |
| } | |
| }) | |
| const TextLink = memo(({ title, onPress }) => { | |
| const { container, h1 } = styles | |
| return ( | |
| <View style={container}> | |
| <Text style={h1} onPress={onPress}> | |
| {title} | |
| </Text> | |
| </View> | |
| ) | |
| }) | |
| export { TextLink } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment