@playfast/reform-react-native 1.1.1 → 1.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.
- package/README.md +2 -2
- package/package.json +19 -19
- package/src/index.tsx +7 -3
package/README.md
CHANGED
|
@@ -21,9 +21,9 @@ import { createReformRoot } from '@playfast/reform-react-native'
|
|
|
21
21
|
import { AppShell } from './shell.compose'
|
|
22
22
|
import { makeAppLayer } from './app.layer'
|
|
23
23
|
|
|
24
|
-
const
|
|
24
|
+
const makeAppScene = () => scene(AppShell, { provide: [makeAppLayer()] })
|
|
25
25
|
|
|
26
|
-
registerRootComponent(createReformRoot(
|
|
26
|
+
registerRootComponent(createReformRoot(makeAppScene))
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
All of reform's engine, reactivity, and lifecycle behavior comes from `@playfast/reform-react`
|
package/package.json
CHANGED
|
@@ -1,35 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playfast/reform-react-native",
|
|
3
|
-
"
|
|
4
|
-
"version": "1.1.1",
|
|
5
|
-
"type": "module",
|
|
3
|
+
"version": "1.2.0",
|
|
6
4
|
"description": "React Native host for reform — registers a scene as a zero-arg root component for Expo or bare React Native.",
|
|
7
5
|
"keywords": [
|
|
8
|
-
"reform",
|
|
9
6
|
"effect",
|
|
10
|
-
"react-native",
|
|
11
7
|
"expo",
|
|
12
|
-
"host"
|
|
8
|
+
"host",
|
|
9
|
+
"react-native",
|
|
10
|
+
"reform"
|
|
13
11
|
],
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/playfast/reform/issues"
|
|
14
|
+
},
|
|
14
15
|
"license": "MIT",
|
|
15
16
|
"repository": {
|
|
16
17
|
"type": "git",
|
|
17
18
|
"url": "https://github.com/playfast/reform.git",
|
|
18
19
|
"directory": "packages/react-native"
|
|
19
20
|
},
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
21
|
+
"files": [
|
|
22
|
+
"src",
|
|
23
|
+
"README.md"
|
|
24
|
+
],
|
|
25
|
+
"type": "module",
|
|
23
26
|
"sideEffects": false,
|
|
24
27
|
"exports": {
|
|
25
28
|
"./package.json": "./package.json",
|
|
26
29
|
".": "./src/index.tsx",
|
|
27
30
|
"./*": "./src/*.tsx"
|
|
28
31
|
},
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
],
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
33
35
|
"scripts": {
|
|
34
36
|
"clean": "rm -rf dist .tsbuildinfo",
|
|
35
37
|
"check": "tsc --noEmit",
|
|
@@ -41,13 +43,11 @@
|
|
|
41
43
|
"lint:fix": "oxlint --fix src"
|
|
42
44
|
},
|
|
43
45
|
"peerDependencies": {
|
|
46
|
+
"@playfast/reform": "*",
|
|
47
|
+
"@playfast/reform-react": "*",
|
|
44
48
|
"effect": "*",
|
|
45
49
|
"react": "^19.0.0",
|
|
46
|
-
"react-native": "*"
|
|
47
|
-
"@playfast/reform": "*",
|
|
48
|
-
"@playfast/reform-react": "*"
|
|
50
|
+
"react-native": "*"
|
|
49
51
|
},
|
|
50
|
-
"
|
|
51
|
-
"access": "public"
|
|
52
|
-
}
|
|
52
|
+
"playbook": "./playbook"
|
|
53
53
|
}
|
package/src/index.tsx
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { type ComponentType, createElement } from 'react'
|
|
2
2
|
import { Reform } from '@playfast/reform-react'
|
|
3
|
-
import type { ReformOptions
|
|
3
|
+
import type { ReformOptions } from '@playfast/reform'
|
|
4
|
+
import type { AnyScene } from '@playfast/reform/internal'
|
|
4
5
|
|
|
5
|
-
export const createReformRoot = (
|
|
6
|
+
export const createReformRoot = (
|
|
7
|
+
makeScene: () => AnyScene,
|
|
8
|
+
options: ReformOptions = {},
|
|
9
|
+
): ComponentType => {
|
|
6
10
|
const ReformRoot = (): ReturnType<typeof createElement> =>
|
|
7
|
-
createElement(Reform, {
|
|
11
|
+
createElement(Reform, { makeScene, options })
|
|
8
12
|
return ReformRoot
|
|
9
13
|
}
|