Interface: Lynx
APIs under lynx global variable that added by ReactLynx.
Example
Properties
registerDataProcessors
registerDataProcessors: (
dataProcessorDefinition?:DataProcessorDefinition) =>void
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.
triggerGlobalEventFromLepus
triggerGlobalEventFromLepus: (
eventName:string,params:any) =>void
An alias of lynx.getJSModule("GlobalEventEmitter").trigger(eventName, params) only in Lepus
Parameters
Returns
void