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 | "video" | "custom-native-component" |
Returns
any
Any