diff --git a/packages/firestore/android/src/reactnative/java/io/invertase/firebase/firestore/ReactNativeFirebaseFirestoreSerialize.java b/packages/firestore/android/src/reactnative/java/io/invertase/firebase/firestore/ReactNativeFirebaseFirestoreSerialize.java index 3b864fa1a3..356ed1d43a 100644 --- a/packages/firestore/android/src/reactnative/java/io/invertase/firebase/firestore/ReactNativeFirebaseFirestoreSerialize.java +++ b/packages/firestore/android/src/reactnative/java/io/invertase/firebase/firestore/ReactNativeFirebaseFirestoreSerialize.java @@ -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 @@ -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 parseReadableMap( + public static Map parseReadableMap( FirebaseFirestore firestore, @Nullable ReadableMap readableMap ) {