@playfast/reform-react-native
v1.0.1
Published
React Native host for reform — registers a scene as a zero-arg root component for Expo or bare React Native.
Maintainers
Readme
@playfast/reform-react-native
React Native host for reform — register a scene as a root component.
DOM apps mount a scene into a container they own; React Native instead registers a
root component. createReformRoot wraps the renderer-neutral Reform component from
@playfast/reform-react — which already
owns the runtime, boots, and renders the scene — in a zero-argument component you can register
with Expo's registerRootComponent or AppRegistry.registerComponent.
import { registerRootComponent } from 'expo'
import { scene } from '@playfast/reform'
import { createReformRoot } from '@playfast/reform-react-native'
import { AppShell } from './shell.compose'
import { makeAppLayer } from './app.layer'
const AppScene = scene(AppShell, { provide: [makeAppLayer()] })
registerRootComponent(createReformRoot(AppScene))All of reform's engine, reactivity, and lifecycle behavior comes from @playfast/reform-react
underneath — this package only adapts the entry point. Peers: effect, react (^19),
react-native, @playfast/reform, and @playfast/reform-react.
See the API reference. Pair it with the core
@playfast/reform and the DOM host
@playfast/reform-react.
License
MIT
