Skip to content

Error: Unsupported 'updateMode'. Only 'never', 'modified' or 'all' is supported. #7052

@astrahov

Description

@astrahov

How frequently does the bug occur?

Always

Description

It doesn't work. Error!

// package.json

{
  "dependencies": {
    "react-native-edge-to-edge": "1.7.0",
    "react-native-nitro-modules": "0.29.6",
    "react-native-unistyles": "3.0.13",
    "realm": "20.2.0"
  }
}
const database = useRealm() // from @realm/react

const data = {...}

database?.write(() => {
    database?.create('SchemaName', data)
    // Error: Unsupported 'updateMode'. Only 'never', 'modified' or 'all' is supported.
})

It works

// package.json

{
  "dependencies": {
    "react-native-unistyles": "2.43.0",,
    "realm": "20.2.0"
  }
}
import Realm from 'realm'

const database = useRealm() // from @realm/react

const data = {...}

database?.write(() => {
    database?.create('SchemaName', data, Realm.UpdateMode.Never)
})

I suspect the problem is with libraries react-native-edge-to-edge or react-native-nitro-modules.

Stacktrace & log output

Error: Unsupported 'updateMode'. Only 'never', 'modified' or 'all' is supported.
at create (http://localhost:8081/...&app=com.app.name:116177:26)
at anonymous (http://localhost:8081/.../Queue.bundle//&platform=ios&lazy=true&inlineSourceMap=false&modulesOnly=true&sourcePaths=url-server&app=com.app.name&dev=true&minify=false&runModule=true&shallow=true:135:83)
at write (http://localhost:8081/...&app=com.app.name:116437:28)
at ?anon_0_ (http://localhost:8081/.../Queue.bundle//&platform=ios&lazy=true&inlineSourceMap=false&modulesOnly=true&sourcePaths=url-server&app=com.app.name&dev=true&minify=false&runModule=true&shallow=true:133:77)
at next (native)
at asyncGeneratorStep (http://localhost:8081/...&app=com.app.name:22373:19)
at _next (http://localhost:8081/...&app=com.app.name:22387:29)
at anonymous (http://localhost:8081/...&app=com.app.name:22392:14)
at tryCallTwo (address at InternalBytecode.js:1:1222)
at doResolve (address at InternalBytecode.js:1:2541)
at Promise (address at InternalBytecode.js:1:1318)
at anonymous (http://localhost:8081/...&app=com.app.name:22384:25)
at apply (native)
at createJob (http://localhost:8081/.../Queue.bundle//&platform=ios&lazy=true&inlineSourceMap=false&modulesOnly=true&sourcePaths=url-server&app=com.app.name&dev=true&minify=false&runModule=true&shallow=true:151:34)
at ?anon_0_ (http://localhost:8081/...&app=com.app.name:436738:57)
at next (native)
at asyncGeneratorStep (http://localhost:8081/...&app=com.app.name:22373:19)
at _next (http://localhost:8081/...&app=com.app.name:22387:29)
at anonymous (http://localhost:8081/...&app=com.app.name:22392:14)
at tryCallTwo (address at InternalBytecode.js:1:1222)
at doResolve (address at InternalBytecode.js:1:2541)
at Promise (address at InternalBytecode.js:1:1318)
at anonymous (http://localhost:8081/...&app=com.app.name:22384:25)
at apply (native)
at anonymous (http://localhost:8081/...&app=com.app.name:436753:27)
at ?anon_0_ (http://localhost:8081/.../InspectionChecklistItemCell.bundle//&platform=ios&lazy=true&inlineSourceMap=false&modulesOnly=true&sourcePaths=url-server&app=com.app.name&dev=true&minify=false&runModule=true&shallow=true:65:31)
at next (native)
at asyncGeneratorStep (http://localhost:8081/...&app=com.app.name:22373:19)
at _next (http://localhost:8081/...&app=com.app.name:22387:29)
at anonymous (http://localhost:8081/...&app=com.app.name:22392:14)
at tryCallTwo (address at InternalBytecode.js:1:1222)
at doResolve (address at InternalBytecode.js:1:2541)
at Promise (address at InternalBytecode.js:1:1318)
at anonymous (http://localhost:8081/...&app=com.app.name:22384:25)
at apply (native)
at anonymous (http://localhost:8081/.../InspectionChecklistItemCell.bundle//&platform=ios&lazy=true&inlineSourceMap=false&modulesOnly=true&sourcePaths=url-server&app=com.app.name&dev=true&minify=false&runModule=true&shallow=true:85:27)
at anonymous (http://localhost:8081/.../InspectionChecklistItemCell.bundle//&platform=ios&lazy=true&inlineSourceMap=false&modulesOnly=true&sourcePaths=url-server&app=com.app.name&dev=true&minify=false&runModule=true&shallow=true:134:19)
at _performTransitionSideEffects (http://localhost:8081/...&app=com.app.name:54637:22)
at _receiveSignal (http://localhost:8081/...&app=com.app.name:54593:45)
at onResponderRelease (http://localhost:8081/...&app=com.app.name:54456:34)
at executeDispatch (http://localhost:8081/...&app=com.app.name:3839:17)
at executeDispatchesAndReleaseTopLevel (http://localhost:8081/...&app=com.app.name:4187:229)
at forEach (native)
at forEachAccumulated (http://localhost:8081/...&app=com.app.name:3982:39)
at anonymous (http://localhost:8081/...&app=com.app.name:4216:29)
at batchedUpdatesImpl (http://localhost:8081/...&app=com.app.name:12454:18)
at batchedUpdates$1 (http://localhost:8081/...&app=com.app.name:4177:34)
at dispatchEvent (http://localhost:8081/...&app=com.app.name:4199:23)

Can you reproduce the bug?

Always

Reproduction Steps

I'll make an example a little later.

Version

20.2.0

What services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

iPhone 17, iOS 26

Build environment

System:
OS: macOS 15.6.1
CPU: (8) arm64 Apple M1 Pro
Memory: 127.97 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.14.0
path: ~/.nvm/versions/node/v22.14.0/bin/node
Yarn: Not Found
npm:
version: 10.9.2
path: /opt/homebrew/bin/npm
Watchman:
version: 2025.04.07.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK:
Platforms:
- DriverKit 25.0
- iOS 26.0
- macOS 26.0
- tvOS 26.0
- visionOS 26.0
- watchOS 26.0
Android SDK: Not Found
IDEs:
Android Studio: 2025.1 AI-251.26094.121.2513.14007798
Xcode:
version: 26.0.1/17A400
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.14
path: /usr/bin/javac
Ruby:
version: 2.7.8
path: /Users/alex/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 18.0.0
wanted: 18.0.0
react:
installed: 19.0.0
wanted: 19.0.0
react-native:
installed: 0.79.5
wanted: 0.79.5
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true

Cocoapods version

1.15.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions