UNPKG

react-native-persian-calendar-modal

Version:

Persian Calendar Modal Component for React Native

35 lines (27 loc) 888 B
/** * Persian Calendar Picker Component * * Copyright 2016 Reza (github.com/rghorbani) * Licensed under the terms of the MIT license. See LICENSE file in the project root for terms. */ 'use strict'; const React = require('react'); const PropTypes = require('prop-types'); const { Text, TouchableOpacity } = require('react-native'); import {Touchable} from '../main/Touchable'; import {Icon} from 'native-base'; const makeStyles = require('./style'); function Controls({ styles, textStyles, label, onPressControl,iconName,iconType }) { return ( <Touchable onPress={onPressControl} style={[styles]}> <Icon name={iconName} type={iconType} style={{color:'gray'}} /> </Touchable> ); } Controls.propTypes = { styles: PropTypes.array.isRequired, label: PropTypes.string.isRequired, onPressControl: PropTypes.func.isRequired, }; module.exports = Controls;