UNPKG

react-native-slider-intro

Version:

A simple and full customizable React Native package which implements a unique slider.

38 lines (37 loc) 828 B
"use strict"; import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { ButtonType } from '../types/Button.types'; import { jsx as _jsx } from "react/jsx-runtime"; const styles = StyleSheet.create({ skipButton: { justifyContent: 'center', alignItems: 'center' }, label: { textTransform: 'uppercase', fontWeight: 'bold', color: 'white', fontSize: 14 } }); const Button = ({ label, type }) => { if (type === ButtonType.Skip) { return /*#__PURE__*/_jsx(View, { style: styles.skipButton, children: /*#__PURE__*/_jsx(Text, { style: styles.label, children: label }) }); } return /*#__PURE__*/_jsx(Text, { style: styles.label, children: label }); }; export default Button; //# sourceMappingURL=Button.js.map