bn.createContext
▸ createContext(id, type?): any
description create render context object with component element id. no need to call createSelectorQuery any more
example
const videoContext = bn.createContext('test-id', 'video')
Parameters
| Name | Type |
|---|---|
id | string |
type? | ContextType |
Returns
any
Any
ContextType
Ƭ ContextType: "video" | "custom-native-component" | "webview-component" | "editor"