react-native-wf-common-components

1.0.6 • Public • Published

react-native-wf-common-components

 ReactNative通用组件:在ReactNative项目开发过程中,经常会碰到一些非常通用的组件,所以这里封装出来使用。


安装

npm i react-native-wf-common-components --save

该组件有部分是用typescript写的,你可以自行安装typescript


使用

import { AnimatedModal, ActionSheet } from 'react-native-wf-common-components';

<AnimatedModal
  visible={visible5}
  transition="top-in"
  position="top"
  offset={{ background: { top: 100 } }}
  onHide={() => this.onHide(5)}
>
	<View style={{ width: width, height: 200, backgroundColor: '#FFFFFF' }} />
</AnimatedModal>

AnimatedModal

更详细的文档点击这里

对react-native提供的Modal进行了封装。 加入了动画效果、内容位置等功能,使展示效果更完美。

Package Sidebar

Install

npm i react-native-wf-common-components

Weekly Downloads

1

Version

1.0.6

License

ISC

Unpacked Size

30.3 kB

Total Files

6

Last publish

Collaborators

  • wufengyc