-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #344 from wyne/SCORE-75-long-press-add
SCORE-75 Long Press Addend
- Loading branch information
Showing
14 changed files
with
319 additions
and
81 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import React from "react"; | ||
import { StyleSheet, Text, TouchableOpacity, View } from "react-native"; | ||
import { Icon } from "react-native-elements"; | ||
|
||
interface Props { | ||
onPress: () => void; | ||
icon: string; | ||
text: string; | ||
color: string; | ||
} | ||
|
||
const BigButton: React.FunctionComponent<Props> = ({ icon, text, color, onPress }) => { | ||
return ( | ||
<TouchableOpacity activeOpacity={.5} onPress={onPress}> | ||
<View style={[styles.bigButton]}> | ||
<Icon name={icon} | ||
type="ionicon" size={30} | ||
color={color} | ||
/> | ||
<Text style={{ | ||
color: color, | ||
fontSize: 15, | ||
paddingTop: 5, | ||
textAlign: 'center', | ||
}}> | ||
{text} | ||
</Text> | ||
</View> | ||
</TouchableOpacity> | ||
); | ||
}; | ||
|
||
export default BigButton; | ||
|
||
const styles = StyleSheet.create({ | ||
bigButton: { | ||
width: 100, | ||
margin: 5, | ||
padding: 10, | ||
paddingHorizontal: 20, | ||
backgroundColor: 'rgba(0,0,0,.2)', | ||
borderRadius: 10, | ||
alignItems: 'center' | ||
}, | ||
}); |
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
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
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
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
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
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
Oops, something went wrong.