diff --git a/package.json b/package.json index d68e03ea1d..7499655092 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "react-native-calendars", - "version": "1.22.1", + "name": "react-native-calendars-ts", + "version": "1.23.1", "main": "src/index.js", "description": "React Native Calendar Components", "scripts": { @@ -14,7 +14,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/wix/react-native-calendars" + "url": "git+https://github.com/trunk-studio/react-native-calendars-ts" }, "publishConfig": { "registry": "https://registry.npmjs.org/" diff --git a/src/calendar/header/index.js b/src/calendar/header/index.js index 920325cb4a..0b36c84205 100644 --- a/src/calendar/header/index.js +++ b/src/calendar/header/index.js @@ -1,7 +1,7 @@ import React, {Component} from 'react'; import {ActivityIndicator} from 'react-native'; -import { TouchableOpacity as TouchableOpacityAndroid } from 'react-native-gesture-handler' -import {View, Text, Image, TouchableOpacity, Platform} from 'react-native'; +import {TouchableOpacity as TouchableOpacityAndroid} from 'react-native-gesture-handler'; +import {View, Text, Image, TouchableOpacity, Platform} from 'react-native'; import XDate from 'xdate'; import PropTypes from 'prop-types'; import styleConstructor from './style'; @@ -42,12 +42,16 @@ const withPreventDoublePress = (WrappedComponent) => { render() { const disabled = this.state.onPressDisabled || this.props.disabled; + return ( ); } @@ -59,7 +63,7 @@ const withPreventDoublePress = (WrappedComponent) => { return PreventDoublePress; }; -const Button = withPreventDoublePress(Platform.OS==='ios' ? TouchableOpacity :TouchableOpacityAndroid); +const Button = withPreventDoublePress(TouchableOpacity); class CalendarHeader extends Component { static displayName = 'IGNORE'; @@ -158,10 +162,7 @@ class CalendarHeader extends Component { leftArrow = (