react-native-gestureunlock
Introduction
This is a reusable react native component with native component wrapped for gesture-unlock use, example for quick start is here.
Install
- Run
npm install --save react-native-gestureunlock
- Import all the files under
./node_modules/eact-native-gestureunlock/gestureunlock
directory into your native project(within ./iOS/, Xcode for iOS, haven't worked out for native Android though 😌).
Usage
Please refer to Demo, for more questions, just feel free to contact me via email chenx218@gmail.com, or commit issues on Github when bug arises!
Note: use built-in react native component like Image may suffer from inconvenient naming scheme, to avoid that, just put the custom images under resource.bundle
, and set the certain property by passing image name in JS.
License
The react-native-gestureunlock is released under MIT license. See License
介绍
这是个方便复用的react native组件,封装了对应的原生UI组件,例子可以参考这个:
安装
- 执行
npm install --save react-native-gestureunlock
- 将工程目录下的
./node_modules/eact-native-gestureunlock/gestureunlock
内的所有文件导入你的Xcode项目中(在RN项目的iOS文件夹内),安卓的原生项目尚未完成,后期会更新
使用
请参考示例程序。若还有问题可以给我发邮件chenx218@gmail.com,有bug可以在Github提issue
使用自定义的图片的时候,可以将新图放入Xcode项目中的resource bundle
下,在JS中使用时直接传入文件名即可。
证书
MIT,参考证书