UNPKG

react-native-actionsheet

Version:

Cross platform ActionSheet. This component implements a custom ActionSheet and provides the same way to drawing it on the defferent platforms(iOS and Android). Actually, In order to keep the best effect, it still uses the ActionSheetIOS on iOS.

16 lines (11 loc) 346 B
import { Platform } from 'react-native' import _ActionSheetIOS from './ActionSheetIOS' import _ActionSheetCustom from './ActionSheetCustom' export const ActionSheetCustom = _ActionSheetCustom let ActionSheet if (Platform.OS === 'ios') { ActionSheet = _ActionSheetIOS } else { ActionSheet = _ActionSheetCustom } export default ActionSheet