@ng-native/schematics 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +1,26 @@
1
1
  import { Component, signal } from '@angular/core';
2
- import { Pressable, SafeAreaView, Text, View } from '@ng-native/components';
2
+ import { Pressable, SafeAreaProvider, SafeAreaView, Text, View } from '@ng-native/components';
3
3
 
4
4
  /**
5
5
  * Element names are lowercase, and that is load-bearing rather than style: an uppercase name is
6
6
  * read as an unknown Angular component and commits as a plain view with nothing in it.
7
7
  */
8
8
  @Component({
9
- imports: [Pressable, SafeAreaView, Text, View],
9
+ imports: [Pressable, SafeAreaProvider, SafeAreaView, Text, View],
10
10
  selector: 'app-root',
11
11
  template: `
12
- <safe-area-view class="screen">
13
- <view class="body">
14
- <text class="title">Angular, natively</text>
15
- <text class="hint">Real native views. React is never in the render path.</text>
12
+ <safe-area-provider>
13
+ <safe-area-view class="screen">
14
+ <view class="body">
15
+ <text class="title">Angular, natively</text>
16
+ <text class="hint">Real native views. React is never in the render path.</text>
16
17
 
17
- <pressable accessibilityRole="button" class="button" (press)="count.set(count() + 1)">
18
- <text class="label">Tapped {{ count() }} times</text>
19
- </pressable>
20
- </view>
21
- </safe-area-view>
18
+ <pressable accessibilityRole="button" class="button" (press)="count.set(count() + 1)">
19
+ <text class="label">Tapped {{ count() }} times</text>
20
+ </pressable>
21
+ </view>
22
+ </safe-area-view>
23
+ </safe-area-provider>
22
24
  `,
23
25
  styles: `
24
26
  :host {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-native/schematics",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "ng add and ng generate for Angular Native: an Expo app in an Angular CLI workspace, with builders that run it.",
5
5
  "keywords": [
6
6
  "angular",