realm / realm-js

Realm is a mobile database: an alternative to SQLite & key-value stores
https://realm.io
Apache License 2.0
5.72k stars 564 forks source link

tvOS support with React Native? #2101

Open bthj opened 5 years ago

bthj commented 5 years ago

Goals

It would be great to be able to use Realm with React Native on tvOS. Has it been achieved or does it still require more effort?

In a blog entry it's mentioned that "...the tvOS build of Realm defaults to using the cache directory instead of the standard default in the documents directory", so Realm seems to take tvOS and its limitations into account.

Running the tvOS target in Xcode to an Apple TV emulator, results in the error:

"Missing Realm constructor. Did you run "react-native link realm"? ..."

I did run react-native link realm and running the iOS target to an iPhone emulator works fine.

Might there be something missing in my configuration or is tvOS just not yet supported?

Version of Realm and Tooling

kneth commented 5 years ago

I believe that we are only releasing for iOS and Android but tvOS would be a nice enhancement!

bilalhameed1 commented 3 months ago

Hey there @kneth , any update for realm integration in tvOS? I tried it out but it didn't work and gave this error "The platform of the target Demo-tvOS (tvOS 13.4) is not compatible with RealmJS (12.9.0), which does not support tvOS."

kneth commented 3 months ago

@bilalhameed1 Thank you for reaching out. Unfortunately we haven't look at it recently but we are considering it (see https://github.com/realm/realm-js/pull/6650/files#r1616413522).