Open jijithjv opened 7 months ago
Hi!
I tried to understand what could go wrong, but I don't know what. Does the example project in this repo work for you? Can you investigate the difference?
Thanks!
Nope Actually Got the Same Error
Hi! @pierpo ,
Thanks for replying, Tried running the example project ,but got the same error
Hey, I just tried on tvOS on the example project and it does work fine for me. Do you reproduce only on tvOS? Have you tried web and android?
Description: I am a newbie in react-native-TVOS and spatial naviagtion. I am trying to create a demo project in Apple TV. I'm encountering a TypeError: constructor is not callable error when trying to use the SpatialNavigationRoot component from the react-tv-space-navigation library in my React Native project for Apple TV. Here's the code I'm using for App.js:
Here is the code for page.js
Package.json:
{ "name": "AmazingKids", "version": "0.0.1", "private": true, "scripts": { "android": "expo run:android", "ios": "expo run:ios", "tvos": "expo run:ios --scheme AmazingKids-tvOS --device \"ATVHD\"", "lint": "eslint .", "start": "expo start", "test": "jest" }, "dependencies": { "expo": "^50.0.2", "mitt": "^3.0.1", "react": "18.2.0", "react-native": "npm:react-native-tvos@0.73.6-2", "react-tv-space-navigation": "^3.4.0" }, "devDependencies": { "@babel/core": "^7.20.0", "@babel/preset-env": "^7.20.0", "@babel/runtime": "^7.20.0", "@react-native/babel-preset": "0.73.21", "@react-native/eslint-config": "0.73.2", "@react-native/metro-config": "0.73.5", "@react-native/typescript-config": "0.73.1", "@types/react": "^18.2.6", "@types/react-test-renderer": "^18.0.0", "babel-jest": "^29.6.3", "eslint": "^8.19.0", "jest": "^29.6.3", "prettier": "2.8.8", "react-test-renderer": "18.2.0", "typescript": "5.0.4" }, "engines": { "node": ">=18" } }
And here's the error stack trace: Copy codeERROR TypeError: constructor is not callable
This error is located at: in SpatialNavigationRoot (created by Page) in Page (created by App) in App ... in SpaceNav(RootComponent), js engine: hermes