realm-js icon indicating copy to clipboard operation
realm-js copied to clipboard

tvOS support with React Native?

Open bthj opened this issue 5 years ago • 3 comments

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

  • Realm JS SDK Version: 2.18.0
  • Node or React Native: RN v0.57.4
  • Client OS & Version: macOS 10.14.1 (18B75)
  • Which debugger for React Native: None

bthj avatar Nov 08 '18 23:11 bthj

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

kneth avatar Aug 14 '19 11:08 kneth

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."

bilalhameed1 avatar Jun 05 '24 10:06 bilalhameed1

@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).

kneth avatar Jun 06 '24 15:06 kneth