by hizoul | v0.0.7-2
preact components for nativescript
npm i --save preact-nativescript-components
  • Version: 0.0.7-2
  • GitHub:
  • Downloads:
    • Last Day:   0
    • Last Week:  0
    • Last Month: 0

preact-nativescript-componentsBuild Status Coverage Status dependencies npm

preact-nativescript-components was made to use JSX-Syntax for preact-to-nativescript components


You should mostly be able to import and use the NativeScript UI Components by name e.g.

import application from "tns-core-modules/application"
import { render } from "preact-to-nativescript"
import {
ActionBar, ActionItem, Button, Label, Page, ScrollView, StackLayout
} from "preact-nativescript-components"

create: () => {
return render(
<Label>Custom Header</Label>
<ActionItem text="act" />
<Button text="Button" />

List of importable Components