@ng-native/platform 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -9,7 +9,7 @@ Alpha: APIs may change before 1.0.
9
9
  ## Install
10
10
 
11
11
  Most apps start from `npx create-expo-app@latest my-app --template @ng-native/template`, which
12
- already calls `mount()` in `index.ts`. Otherwise:
12
+ already calls `mount()` in `src/main.ts`. Otherwise:
13
13
 
14
14
  ```sh
15
15
  npm install @ng-native/platform
@@ -21,11 +21,11 @@ npm install @angular/core react-native
21
21
  ## Example
22
22
 
23
23
  ```ts
24
- // index.ts
24
+ // src/main.ts
25
25
  import { AppRegistry, Image, Platform, processColor } from 'react-native';
26
26
  import { mount } from '@ng-native/platform';
27
27
  import { getFabricUIManager, registerPlatformComponents } from '@ng-native/fabric';
28
- import { App } from './app.ts';
28
+ import { App } from './app/app.ts';
29
29
 
30
30
  registerPlatformComponents(Platform.OS);
31
31
 
@@ -39,7 +39,7 @@ AppRegistry.registerRunnable('main', ({ rootTag }) => {
39
39
 
40
40
  ## What's in the package
41
41
 
42
- - `.` - `mount()`, `NativeRendererFactory`, `NativeRenderer`.
42
+ - `.` - `mount()`, `NativeRendererFactory`, `PLATFORM_NATIVE_ID`, `isPlatformNative()`.
43
43
  - `./http` - `provideNativeHttpClient()`, an `HttpClient` backend over React Native's
44
44
  `XMLHttpRequest` (Angular's default `fetch` backend cannot read a React Native `fetch` response
45
45
  body). Use it in place of `provideHttpClient()`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-native/platform",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Angular Native's Renderer2 and bootstrap: mounts an Angular application onto React Native's Fabric.",
5
5
  "keywords": [
6
6
  "angular",
@@ -30,7 +30,7 @@
30
30
  "access": "public"
31
31
  },
32
32
  "dependencies": {
33
- "@ng-native/fabric": "0.1.1"
33
+ "@ng-native/fabric": "0.1.2"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@angular/core": "^22.0.0",