Questions tagged [realm-js]

Realm is a mobile database: an alternative to SQLite & key-value stores

Links

  1. Github

  2. Site

  3. Documentation

55 questions
13
votes
3 answers

UI doesn't update until tap on the screen when setState is called inside a realm listener callback

UPDATED DESCRIPTION I have a listener on a Realm Object for getting updates. When there is an update on the server (or in the client) the function provided to the listener calls setState({}). The strange part is that even if the console says that…
DxW
  • 1,414
  • 3
  • 11
  • 23
7
votes
0 answers

Backup files to icloud in my react-native app

looking for react-native libraries or development approaches to archive the following: My Use case In my react-native app I want to sync pictures ( taken by users ) and other files like the user database "realm.db ( from realmjs )" with the user…
7
votes
2 answers

realm js: Access to invalidated Results objects

I use realm inside my React native application a try to query list of objects from realm db. function* loadPlaces() { let realm; try { const filter = yield select(getFilter); realm = yield call(Realm.open, {schema:…
Dmitry Ermichev
  • 397
  • 4
  • 12
5
votes
1 answer

How to define realm schema for property of object (or dictionary) with array as its value?

I have data that looks like this PersonJSONData = { "key1": { "name": "odo", "age": 10, "favorites": { "food": ["rice", "chocolate", "sugar"], "game": [], "color": ["red"] }, …
5
votes
0 answers

Upgrade realm-js from v6 to v10

Update I found the release notes when it comes to v10.0.0 and here's the place where I find the breaking changes. I guess this should be enough? Initial question I want to upgrade the realm library version we're using (v6.1.0) to latest stable one…
Lucaci Sergiu
  • 564
  • 5
  • 17
4
votes
0 answers

Realm has no setter or ivar for its bridge, which is not permitted

I want to use Jitsi-Meet (Video calling library) with Realm. When I run the app on iOS, Realm does not work. It shows the following error: 2018-12-28 16:22:34.504 [error][tid:main][RCTModuleData.mm:179] Realm has no setter or ivar for its bridge,…
Saadi
  • 1,292
  • 13
  • 22
3
votes
1 answer

React native xcodebuild archive failed with exit status 65 on Fastlane - RealmJS Pods

I am trying to automate my react native app publish to app store by using fastlane. Archiving the app manually using xcode is successful. However when i use Fastlane, the build app step fails with exit status 65. error: Unable to load contents of…
xyzhezac
  • 31
  • 2
3
votes
1 answer

How to bundle realm with react native app

I've just recently started working with react native and Realm, and it works great. However up to this point we've only been using the realm file created in the default location, but we want to be able to package a realm file with our app when we…
Kynian
  • 660
  • 4
  • 15
  • 30
3
votes
2 answers

Object.values on a realmjs object returns an empty array

Description I'm trying to convert my realm object to an array as can be seen below in the history method. class RealmStore { @observable symptoms = {}; @observable meals = {}; @computed get history(){ return…
kemicofa ghost
  • 16,349
  • 8
  • 82
  • 131
2
votes
0 answers

Syntax error when query with "IN" - Realm js

Background Framework: React Native Library: Realm JS I am writing a query to search whether an ID is included in a collection following the official doc in https://static.realm.io/downloads/files/NSPredicateCheatsheet.pdf Left hand expression must…
tony1233465
  • 37
  • 1
  • 6
2
votes
1 answer

Realm-JS: Performant way to find the index of an element in sorted results list

I am searching for a perfomant way to find the index of a given realm-object in a sorted results list. I am aware of this similar question, which was answered with using indexOf, so my current solution looks like this: const sortedRecords =…
2
votes
0 answers

Is there a way to delete multiple users at once from Realm Studio?

Is there a way to list all users for a Realm instance from Realm's API? I wanted to list and delete all regular users with a script, since I can't multi select from Realm studio. They have to be deleted 1 by 1.
Buzzkill
  • 68
  • 2
  • 8
2
votes
1 answer

Slow first read big data in realms

React native app freezes when querying big data from realm database. let list = realm.objects('Messages'); list = list.filtered('dialogue_id = $0 SORT(unixtime ASC)', dialogue_id); I use list = list.slice(0, 50); Realmjs version…
2
votes
1 answer

Realm for react native not working in debugging mode

When opening react-native app in debug mode i receive the following error in console and device connected via usb
Gokul
  • 82
  • 8
2
votes
1 answer

Use Realm GraphQL Client with a global/shared realm in Realm Cloud

I can successfully use the Realm GraphQL Client with a realm path like myInstance.us1.cloud.realm.io/~/realmName but when trying to use a global path, i.e., myinstance.us1.cloud.realm.io/realmName, I always get a 502 response from the server. Any…
sellmeadog
  • 7,437
  • 1
  • 31
  • 45
1
2 3 4