Files
iNaturalistReactNative/src/realmModels/LocalPreferences.js
Amanda Bullington d147ac5d54 Explore defaults to viewer's location (#1157)
* Show observations by defaulting to user location

* Remove log

* Create useHeaderCount hook to load user location count before global count

* Header count and location permission fixes

* Remove log

* Fix Explore tests

* Test fixes and add blocked/denied state
2024-02-15 18:28:33 -08:00

14 lines
305 B
JavaScript

import { Realm } from "@realm/react";
class LocalPreferences extends Realm.Object {
static schema = {
name: "LocalPreferences",
properties: {
last_sync_time: "date?",
explore_location_permission_shown: { type: "bool", default: false }
}
};
}
export default LocalPreferences;