@nativescript-dom/react-types
TypeScript definitions for @nativescript/core views exposed as JSX intrinsic elements for react
npm i --save @nativescript-dom/react-types

react-types

Typescript types for react-nativescript that give you proper and complete intellisense in code editors.

Installtion

  1. Install the core and react types in your project
npm install @nativescript-dom/core-types @nativescript-dom/react-types --save-dev
  1. Configure tsconfig.json as below
{
"compilerOptions": {
...
"types": [
"node",
"@nativescript-dom/core-types",
"@nativescript-dom/react-types"
],
...
}

That's it, enjoy a fully typed react-nativescript experience.

MIT Licensed