diff --git a/ios/RNFirebase/firestore/RNFirebaseFirestoreCollectionReference.m b/ios/RNFirebase/firestore/RNFirebaseFirestoreCollectionReference.m index b3816340ca..765d2f70d8 100644 --- a/ios/RNFirebase/firestore/RNFirebaseFirestoreCollectionReference.m +++ b/ios/RNFirebase/firestore/RNFirebaseFirestoreCollectionReference.m @@ -129,7 +129,7 @@ - (FIRQuery *)applyOptions:(FIRQuery *) query { query = [query queryEndingBeforeValues:_options[@"endBefore"]]; } if (_options[@"limit"]) { - query = [query queryLimitedTo:_options[@"limit"]]; + query = [query queryLimitedTo:[_options[@"limit"] intValue]]; } if (_options[@"offset"]) { // iOS doesn't support offset