Commit 1000a017 authored by Terrillo Walls's avatar Terrillo Walls Committed by GitHub

Merge branch 'master' into master

parents 9ede4623 06fc2efe
......@@ -423,7 +423,7 @@
[RCTAppleHealthKit reverseNSMutableArray:data];
}
if(lim > 0) {
if((lim > 0) && ([data count] > lim)) {
NSArray* slicedArray = [data subarrayWithRange:NSMakeRange(0, lim)];
NSError *err;
completionHandler(slicedArray, err);
......
# React Native Apple Healthkit
A React Native bridge module for interacting with [Apple Healthkit] data.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment