Skip to content

Type Alias: ReactNativeServiceEntrypointOptions ​

ReactNativeServiceEntrypointOptions = object

The options of reactNativeServiceEntrypoint.

Properties ​

middlewares? ​

optional middlewares?: MiddlewareDefinition[]

The middlewares of this adapter's actions, run after the entrypoint's global middlewares.


name? ​

optional name?: string

The adapter name, to tell apart several service adapters of one entrypoint.


pause? ​

optional pause?: () => void | Promise<void>

Called when the application goes to the background, before the host is told the application is ready for it (on iOS, the application keeps running until then, for the time the system gives): write what has to be written. Its failure is ignored.

Returns ​

void | Promise<void>


resume? ​

optional resume?: () => void | Promise<void>

Called when the application comes back from the background. Its failure is ignored.

Returns ​

void | Promise<void>


socket? ​

optional socket?: Duplex

The connection to the host, already open: a stream of lines of JSON both ways.

Default ​

a socket on the file descriptor given by the environment variable LAKUTATA_NODE_FD, which the native module of the application gives the Node.js it starts

Released under the MIT License.