We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de8e5eb commit 887be01Copy full SHA for 887be01
android/src/main/java/io/fullstack/firestack/FirestackModule.java
@@ -178,9 +178,13 @@ public String setKeyOrDefault(
178
179
@ReactMethod
180
public void serverValue(@Nullable final Callback onComplete) {
181
+ WritableMap timestampMap = Arguments.createMap();
182
+ for (Map.Entry<String, String> entry : ServerValue.TIMESTAMP.entrySet()) {
183
+ timestampMap.putString(entry.getKey(), entry.getValue());
184
+ }
185
+
186
WritableMap map = Arguments.createMap();
- // TODO
- map.putString("TIMESTAMP", "ServerValue.TIMESTAMP");
187
+ map.putMap("TIMESTAMP", timestampMap);
188
onComplete.invoke(null, map);
189
}
190
0 commit comments