@lynx-js/react / Lynx
Interface: Lynx
APIs under lynx global variable that added by ReactLynx.
Example
Properties
registerDataProcessors()
Register DataProcessors. You MUST call this before root.render().
Parameters
Returns
void
Examples
You MUST call lynx.registerDataProcessors before calling root.render().
If you have a class component with static defaultDataProcessor
or static dataProcessors, you can use it to register DataProcessors.
For developers who want fully typed defaultDataProcessor,
they can achieve it by extends interface InitDataRaw and InitData.
For developers who want fully typed defaultDataProcessor,
they can achieve it by extends interface InitDataRaw and InitData.
Defined in
@lynx-js/react/runtime/lib/lynx-api.d.ts:454
triggerGlobalEventFromLepus()
An alias of lynx.getJSModule("GlobalEventEmitter").trigger(eventName, params) only in Lepus
Parameters
Returns
void
Defined in
@lynx-js/react/runtime/lib/lynx-api.d.ts:345