import { isWeex } from 'universal-env'; import withStickyNative from './index.native'; import withStickyWeb from './index.web'; let sticky: any; if (isWeex) { sticky = withStickyNative; } else { sticky = withStickyWeb; } export default sticky;