ubiatar-react-native-material-ui
Version:
Ubiatar React Native Material Design Components
27 lines (24 loc) • 655 B
JavaScript
import React from 'react'
import {
Text,
View,
TouchableOpacity,
} from 'react-native';
export const DoneButton = ({
styles, onDoneBtnClick, onNextBtnClick,
rightTextColor, isDoneBtnShow,
doneBtnLabel, nextBtnLabel,
}) => {
return (
<View style={[styles.btnContainer, { height: 0, paddingBottom: 5 }]}>
<TouchableOpacity style={styles.full}
onPress={ isDoneBtnShow ? onDoneBtnClick : onNextBtnClick}
>
<Text style={[styles.nextButtonText, { color: rightTextColor }]}>
{isDoneBtnShow ? doneBtnLabel : nextBtnLabel}
</Text>
</TouchableOpacity>
</View>
)
}
export default DoneButton