diff --git a/README.md b/README.md index caaa5bf0..db93c221 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ - [@nstudio/nativescript-persona](packages/nativescript-persona/README.md) - [@nstudio/nativescript-plaid](packages/nativescript-plaid/README.md) - [@nstudio/nativescript-qr](packages/nativescript-qr/README.md) +- [@nstudio/nativescript-splitsheet](packages/nativescript-splitsheet/README.md) - [@nstudio/nativescript-tracking-transparency](packages/nativescript-tracking-transparency/README.md) - [@nstudio/nativescript-walletconnect](packages/nativescript-walletconnect/README.md) diff --git a/apps/demo-angular/package.json b/apps/demo-angular/package.json index b2e892b2..a5ba7c74 100644 --- a/apps/demo-angular/package.json +++ b/apps/demo-angular/package.json @@ -26,7 +26,8 @@ "@nstudio/nativescript-plaid": "file:../../dist/packages/nativescript-plaid", "@nstudio/nativescript-qr": "file:../../dist/packages/nativescript-qr", "@nstudio/nativescript-tracking-transparency": "file:../../dist/packages/nativescript-tracking-transparency", - "@nstudio/nativescript-walletconnect": "file:../../dist/packages/nativescript-walletconnect" + "@nstudio/nativescript-walletconnect": "file:../../dist/packages/nativescript-walletconnect", + "@nstudio/nativescript-splitsheet": "file:../../dist/packages/nativescript-splitsheet" }, "devDependencies": { "@nativescript/android": "~8.4.0", diff --git a/apps/demo-angular/src/app-routing.module.ts b/apps/demo-angular/src/app-routing.module.ts index 98204f91..44096edb 100644 --- a/apps/demo-angular/src/app-routing.module.ts +++ b/apps/demo-angular/src/app-routing.module.ts @@ -29,6 +29,7 @@ const routes: Routes = [ { path: 'nativescript-persona', loadChildren: () => import('./plugin-demos/nativescript-persona.module').then(m => m.NativescriptPersonaModule) }, { path: 'nativescript-plaid', loadChildren: () => import('./plugin-demos/nativescript-plaid.module').then(m => m.NativescriptPlaidModule) }, { path: 'nativescript-qr', loadChildren: () => import('./plugin-demos/nativescript-qr.module').then(m => m.NativescriptQrModule) }, + { path: 'nativescript-splitsheet', loadChildren: () => import('./plugin-demos/nativescript-splitsheet.module').then(m => m.NativescriptSplitsheetModule) }, { path: 'nativescript-tracking-transparency', loadChildren: () => import('./plugin-demos/nativescript-tracking-transparency.module').then(m => m.NativescriptTrackingTransparencyModule) }, { path: 'nativescript-walletconnect', loadChildren: () => import('./plugin-demos/nativescript-walletconnect.module').then(m => m.NativescriptWalletconnectModule) } ]; diff --git a/apps/demo-angular/src/home.component.ts b/apps/demo-angular/src/home.component.ts index 7f7e47c0..b04c3e66 100644 --- a/apps/demo-angular/src/home.component.ts +++ b/apps/demo-angular/src/home.component.ts @@ -75,6 +75,9 @@ export class HomeComponent { { name: 'nativescript-qr' }, + { + name: 'nativescript-splitsheet' + }, { name: 'nativescript-tracking-transparency' }, diff --git a/apps/demo-angular/src/plugin-demos/nativescript-splitsheet.component.html b/apps/demo-angular/src/plugin-demos/nativescript-splitsheet.component.html new file mode 100644 index 00000000..ccb8e2fc --- /dev/null +++ b/apps/demo-angular/src/plugin-demos/nativescript-splitsheet.component.html @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/apps/demo-angular/src/plugin-demos/nativescript-splitsheet.component.ts b/apps/demo-angular/src/plugin-demos/nativescript-splitsheet.component.ts new file mode 100644 index 00000000..2948ff53 --- /dev/null +++ b/apps/demo-angular/src/plugin-demos/nativescript-splitsheet.component.ts @@ -0,0 +1,19 @@ +import { Component, NgZone } from '@angular/core'; +import { DemoSharedNativescriptSplitsheet } from '@demo/shared'; +import { } from '@nstudio/nativescript-splitsheet'; + +@Component({ + selector: 'demo-nativescript-splitsheet', + templateUrl: 'nativescript-splitsheet.component.html', +}) +export class NativescriptSplitsheetComponent { + + demoShared: DemoSharedNativescriptSplitsheet; + + constructor(private _ngZone: NgZone) {} + + ngOnInit() { + this.demoShared = new DemoSharedNativescriptSplitsheet(); + } + +} \ No newline at end of file diff --git a/apps/demo-angular/src/plugin-demos/nativescript-splitsheet.module.ts b/apps/demo-angular/src/plugin-demos/nativescript-splitsheet.module.ts new file mode 100644 index 00000000..1fa97a02 --- /dev/null +++ b/apps/demo-angular/src/plugin-demos/nativescript-splitsheet.module.ts @@ -0,0 +1,10 @@ +import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; +import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular'; +import { NativescriptSplitsheetComponent } from './nativescript-splitsheet.component'; + +@NgModule({ + imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: NativescriptSplitsheetComponent }])], + declarations: [NativescriptSplitsheetComponent], + schemas: [ NO_ERRORS_SCHEMA] +}) +export class NativescriptSplitsheetModule {} diff --git a/apps/demo-react/package.json b/apps/demo-react/package.json index d97d02f0..8237bf50 100644 --- a/apps/demo-react/package.json +++ b/apps/demo-react/package.json @@ -26,7 +26,8 @@ "@nstudio/nativescript-plaid": "file:../../packages/nativescript-plaid", "@nstudio/nativescript-qr": "file:../../packages/nativescript-qr", "@nstudio/nativescript-tracking-transparency": "file:../../packages/nativescript-tracking-transparency", - "@nstudio/nativescript-walletconnect": "file:../../packages/nativescript-walletconnect" + "@nstudio/nativescript-walletconnect": "file:../../packages/nativescript-walletconnect", + "@nstudio/nativescript-splitsheet": "file:../../packages/nativescript-splitsheet" }, "devDependencies": { "@nativescript/android": "~8.4.0", diff --git a/apps/demo-react/src/plugin-demos/nativescript-splitsheet.tsx b/apps/demo-react/src/plugin-demos/nativescript-splitsheet.tsx new file mode 100644 index 00000000..35c89b42 --- /dev/null +++ b/apps/demo-react/src/plugin-demos/nativescript-splitsheet.tsx @@ -0,0 +1,30 @@ +import * as React from "react"; +import { Dialogs } from '@nativescript/core'; +import { StyleSheet } from "react-nativescript"; +import { DemoSharedNativescriptSplitsheet } from '@demo/shared'; +import { } from '@nstudio/nativescript-splitsheet'; + +export function HomeScreen() { + return ( + + + + ); +} + +const styles = StyleSheet.create({ + container: { + height: "100%", + flexDirection: "column", + justifyContent: "center", + }, + button: { + fontSize: 24, + color: "#2e6ddf", + }, +}); \ No newline at end of file diff --git a/apps/demo-svelte/app/plugin-demos/nativescript-splitsheet.svelte b/apps/demo-svelte/app/plugin-demos/nativescript-splitsheet.svelte new file mode 100644 index 00000000..89a3d7e5 --- /dev/null +++ b/apps/demo-svelte/app/plugin-demos/nativescript-splitsheet.svelte @@ -0,0 +1,19 @@ + + + +