react-native-pedometer:iOS CMPedometer支持react-native

时间:2021-05-11 05:46:22
【文件属性】:
文件名称:react-native-pedometer:iOS CMPedometer支持react-native
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-11 05:46:22
ios react-native pedometer Objective-C React型计步器 对iOS 8.0及更高版本的React Native计步器支持。 该模块是CMPedometer包装器。 有关CMPedometer的更多信息, 参见 安装 首先从您的应用程序目录安装npm软件包: npm install react - native - pedometer -- save 在iOS上安装 在XCode中,右键单击“库” 。 单击将文件添加到“ [您的项目]” 。 导航到node_modules / react-native-pedometer 。 添加文件RNPedometer.xcodeproj 。 在项目浏览器中,选择您的项目。 单击构建目标。 单击构建阶段。 用库扩展链接二进制文件。 单击加号按钮,然后在Workspace下添加libRNPedometer.a 。 运行您的项目(⌘+ R)。 基本用法 // Import the reac
【文件预览】:
react-native-pedometer-master
----RNPedometer()
--------RNPedometer.m(4KB)
--------RNPedometer.h(301B)
----RNPedometer.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(9KB)
----pedometer.js(1KB)
----README.md(2KB)
----.gitignore(1KB)
----package.json(485B)

网友评论