react-native-unity-demo
react-native-unity-demo copied to clipboard
This demo is not working in iOS platform. After run "npm run watch" command as per mentioned steps, shows below error in terminal.
After run "npm run watch" command as per mentioned steps then shows below error in terminal.
node_modules/@types/react-native/index.d.ts:8745:18 - error TS2717: Subsequent property declarations must have the same type. Property 'geolocation' must be of type 'Geolocation', but here has type 'GeolocationStatic'.
8745 readonly geolocation: Geolocation;
~~~~~~~~~~~
node_modules/@types/yargs/index.d.ts:212:106 - error TS2304: Cannot find name 'unknown'.
212 demand<K extends string>(key: K | ReadonlyArray<K>, msg?: string | true): Argv<T & { [key in K]: unknown }>;
~~~~~~~
node_modules/@types/yargs/index.d.ts:225:112 - error TS2304: Cannot find name 'unknown'.
225 demandOption<K extends string>(key: K | ReadonlyArray<K>, msg?: string | true): Argv<T & { [key in K]: unknown }>;
~~~~~~~
node_modules/@types/yargs/index.d.ts:575:28 - error TS2304: Cannot find name 'unknown'.
575 [argName: string]: unknown;
~~~~~~~
node_modules/@types/yargs/index.d.ts:733:9 - error TS2304: Cannot find name 'unknown'.
733 unknown;
~~~~~~~
Found 5 errors. Watching for file changes.
Has anyone found a solution for this problem?
The best solution is to migrate from broken TypeScript into plain Javascript, which can be done within 2 minutes. Just remove all these typescript modifiers and type specs, rename .tsx into .js and voila it works again