Skip to content

Commit

Permalink
feat(firestore, android): allow FirestoreSerializer native use (#3888)
Browse files Browse the repository at this point in the history
[publish]
  • Loading branch information
mikehardy authored Jul 6, 2020
1 parent 9c62d35 commit 68daf94
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@

import static io.invertase.firebase.common.RCTConvertFirebase.toHashMap;

class ReactNativeFirebaseFirestoreSerialize {
// public access for native re-use in brownfield apps
public class ReactNativeFirebaseFirestoreSerialize {
private static final String TAG = "FirestoreSerialize";

// Bridge Map
Expand Down Expand Up @@ -386,12 +387,13 @@ private static WritableArray buildTypeMap(Object value) {

/**
* Converts a ReadableMap to a usable format for Firestore
* (public access for native re-use in brownfield apps)
*
* @param firestore FirebaseFirestore
* @param readableMap ReadableMap
* @return Map<>
*/
static Map<String, Object> parseReadableMap(
public static Map<String, Object> parseReadableMap(
FirebaseFirestore firestore,
@Nullable ReadableMap readableMap
) {
Expand Down

0 comments on commit 68daf94

Please sign in to comment.