diff options
author | Ivan Chen <ivan@tagg.id> | 2021-05-07 20:09:57 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-05-07 20:09:57 -0400 |
commit | 525678fde244e8e9d3ea373ee8fb93c26ea92be8 (patch) | |
tree | 40334beb05b4f259d3bf6840c06ed1856004d9fb /src/components/onboarding | |
parent | 4d2371307f7c3e25bec2e2203f0fd434ba341342 (diff) |
added default for arrowbutton
Diffstat (limited to 'src/components/onboarding')
-rw-r--r-- | src/components/onboarding/ArrowButton.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/onboarding/ArrowButton.tsx b/src/components/onboarding/ArrowButton.tsx index dcf559a8..67fd0f62 100644 --- a/src/components/onboarding/ArrowButton.tsx +++ b/src/components/onboarding/ArrowButton.tsx @@ -5,6 +5,7 @@ import { TouchableOpacity, TouchableOpacityProps, } from 'react-native'; +import {normalize} from '../../utils'; interface ArrowButtonProps extends TouchableOpacityProps { direction: 'forward' | 'backward'; @@ -30,7 +31,7 @@ const ArrowButton: React.FC<ArrowButtonProps> = (props) => { } return ( - <TouchableOpacity {...props}> + <TouchableOpacity style={[styles.defautSize, props.style]} {...props}> <Image style={styles.image} source={uri} /> </TouchableOpacity> ); @@ -41,6 +42,10 @@ const styles = StyleSheet.create({ width: '100%', height: '100%', }, + defautSize: { + width: normalize(29), + height: normalize(25), + }, }); export default ArrowButton; |