verdnatura-chat/app/containers/ActionSheet/Button.ts

9 lines
356 B
TypeScript

import React from 'react';
import { TouchableOpacity } from 'react-native';
import { isAndroid } from '../../lib/methods/helpers';
import Touch from '../../lib/methods/helpers/touch';
// Taken from https://github.com/rgommezz/react-native-scroll-bottom-sheet#touchables
export const Button: typeof React.Component = isAndroid ? Touch : TouchableOpacity;