@playfast/reform-react-native 0.0.10 → 0.1.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.
- package/README.md +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
# `@playfast/react-native`
|
|
3
|
+
# `@playfast/reform-react-native`
|
|
4
4
|
|
|
5
5
|
**React Native host for reform — register a scene as a root component.**
|
|
6
6
|
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
|
|
11
11
|
DOM apps mount a scene into a container they own; React Native instead registers a
|
|
12
12
|
**root component**. `createReformRoot` wraps the renderer-neutral `Reform` component from
|
|
13
|
-
[`@playfast/react`](https://www.npmjs.com/package/@playfast/react) — which already
|
|
14
|
-
runtime, boots, and renders the scene — in a zero-argument component you can register
|
|
15
|
-
Expo's `registerRootComponent` or `AppRegistry.registerComponent`.
|
|
13
|
+
[`@playfast/reform-react`](https://www.npmjs.com/package/@playfast/reform-react) — which already
|
|
14
|
+
owns the runtime, boots, and renders the scene — in a zero-argument component you can register
|
|
15
|
+
with Expo's `registerRootComponent` or `AppRegistry.registerComponent`.
|
|
16
16
|
|
|
17
17
|
```tsx
|
|
18
18
|
import { registerRootComponent } from 'expo'
|
|
@@ -26,13 +26,13 @@ const AppScene = scene(AppShell, { provide: [makeAppLayer()] })
|
|
|
26
26
|
registerRootComponent(createReformRoot(AppScene))
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
All of reform's engine, reactivity, and lifecycle behavior comes from `@playfast/react`
|
|
29
|
+
All of reform's engine, reactivity, and lifecycle behavior comes from `@playfast/reform-react`
|
|
30
30
|
underneath — this package only adapts the entry point. Peers: `effect`, `react` (`^19`),
|
|
31
|
-
`react-native`, `@playfast/reform`, and `@playfast/react`.
|
|
31
|
+
`react-native`, `@playfast/reform`, and `@playfast/reform-react`.
|
|
32
32
|
|
|
33
33
|
See the [API reference](./playbook/api.doc.md). Pair it with the core
|
|
34
34
|
[`@playfast/reform`](https://www.npmjs.com/package/@playfast/reform) and the DOM host
|
|
35
|
-
[`@playfast/react`](https://www.npmjs.com/package/@playfast/react).
|
|
35
|
+
[`@playfast/reform-react`](https://www.npmjs.com/package/@playfast/reform-react).
|
|
36
36
|
|
|
37
37
|
## License
|
|
38
38
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playfast/reform-react-native",
|
|
3
3
|
"playbook": "./playbook",
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "0.1.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "React Native host for reform — registers a scene as a zero-arg root component for Expo or bare React Native.",
|
|
7
7
|
"keywords": [
|