diff --git a/src/components.ts b/src/components.ts index 35a7026..4136b51 100644 --- a/src/components.ts +++ b/src/components.ts @@ -1,13 +1,11 @@ import { ActivityIndicator as _ActivityIndicator, Button as _Button, - DatePickerIOS as _DatePickerIOS, DrawerLayoutAndroid as _DrawerLayoutAndroid, FlatList as _FlatList, Image as _Image, InputAccessoryView as _InputAccessoryView, KeyboardAvoidingView as _KeyboardAvoidingView, - MaskedViewIOS as _MaskedViewIOS, Modal as _Modal, NavigatorIOS as _NavigatorIOS, RefreshControl as _RefreshControl, @@ -19,35 +17,33 @@ import { TabBarIOS as _TabBarIOS, TextInput as _TextInput, Text as _Text, - ToolbarAndroid as _ToolbarAndroid, TouchableHighlight as _TouchableHighlight, TouchableNativeFeedback as _TouchableNativeFeedback, TouchableOpacity as _TouchableOpacity, TouchableWithoutFeedback as _TouchableWithoutFeedback, View as _View, + ButtonProps, } from 'react-native'; import {makeHelper} from './helper'; +type Optional = Pick, K> & Omit; + export const ActivityIndicator = makeHelper(_ActivityIndicator); -export const Button = makeHelper(_Button); +export const Button = makeHelper>(_Button); export const DrawerLayoutAndroid = makeHelper(_DrawerLayoutAndroid); export const FlatList = makeHelper(_FlatList); export const Image = makeHelper(_Image); export const InputAccessoryView = makeHelper(_InputAccessoryView); export const KeyboardAvoidingView = makeHelper(_KeyboardAvoidingView); -export const MaskedViewIOS = makeHelper(_MaskedViewIOS); export const Modal = makeHelper(_Modal); -export const NavigatorIOS = makeHelper(_NavigatorIOS); export const RefreshControl = makeHelper(_RefreshControl); export const ScrollView = makeHelper(_ScrollView); export const SectionList = makeHelper(_SectionList); export const SnapshotViewIOS = makeHelper(_SnapshotViewIOS); export const StatusBar = makeHelper(_StatusBar); export const Switch = makeHelper(_Switch); -export const TabBarIOS = makeHelper(_TabBarIOS); export const TextInput = makeHelper(_TextInput); export const Text = makeHelper(_Text); -export const ToolbarAndroid = makeHelper(_ToolbarAndroid); export const TouchableHighlight = makeHelper(_TouchableHighlight); export const TouchableNativeFeedback = makeHelper(_TouchableNativeFeedback); export const TouchableOpacity = makeHelper(_TouchableOpacity);