You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/bottom-navigation/README.md
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -279,6 +279,20 @@ export function BottomNavigation() {
279
279
}
280
280
```
281
281
282
+
**Troubleshooting**
283
+
284
+
If you see an error like this when writing e.g. `<bottomNavigation>` into your JSX:
285
+
286
+
> Property 'bottomNavigation' does not exist on type 'JSX.IntrinsicElements'.ts(2339)
287
+
288
+
Make sure that you have:
289
+
290
+
1. Installed the `react-nativescript` npm module.
291
+
2. Installed the `@types/react` npm module, strictly with the exact version provided in the [React NativeScript starter template](https://github.com/NativeScript/nativescript-app-templates/tree/master/packages/template-blank-react).
292
+
3. Run the postinstall script that comes with the React NativeScript template – `npm run postinstall` – to patch `@types/react`.
293
+
4. Registered the component as described above (i.e. import and run the `registerBottomNavigation()` method).
294
+
5. If using Visual Studio Code, option-click the import `@nativescript-community/ui-material-bottom-navigation/react` to jump to the file; opening the file will force it to load its provided typings.
Copy file name to clipboardExpand all lines: packages/tabs/README.md
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -279,6 +279,20 @@ export function Tabs() {
279
279
}
280
280
```
281
281
282
+
**Troubleshooting**
283
+
284
+
If you see an error like this when writing e.g. `<tabs>` into your JSX:
285
+
286
+
> Property 'tabs' does not exist on type 'JSX.IntrinsicElements'.ts(2339)
287
+
288
+
Make sure that you have:
289
+
290
+
1. Installed the `react-nativescript` npm module.
291
+
2. Installed the `@types/react` npm module, strictly with the exact version provided in the [React NativeScript starter template](https://github.com/NativeScript/nativescript-app-templates/tree/master/packages/template-blank-react).
292
+
3. Run the postinstall script that comes with the React NativeScript template – `npm run postinstall` – to patch `@types/react`.
293
+
4. Registered the component as described above (i.e. import and run the `registerTabs()` method).
294
+
5. If using Visual Studio Code, option-click the import `@nativescript-community/ui-material-tabs/react` to jump to the file; opening the file will force it to load its provided typings.
0 commit comments