UNPKG

react-native-overflow-view

Version:
16 lines (13 loc) 385 B
import React from 'react'; import {requireNativeComponent, View, Platform} from 'react-native'; let viewVithoutOverflow; if (Platform.OS === 'ios') { viewVithoutOverflow = (props, children) => { return <View {...props}> {props.children} </View> }; } else { viewVithoutOverflow = requireNativeComponent('OverflowView', null); } export default viewVithoutOverflow;