mirror of
https://github.com/zoriya/react-native-omni.git
synced 2026-08-16 02:44:51 +00:00
Implement view
This commit is contained in:
@@ -14,6 +14,8 @@ namespace margelo::nitro::omni {
|
||||
HybridObject::loadHybridMethods();
|
||||
// load custom methods/properties
|
||||
registerHybrids(this, [](Prototype& prototype) {
|
||||
prototype.registerHybridGetter("player", &HybridOmniViewSpec::getPlayer);
|
||||
prototype.registerHybridSetter("player", &HybridOmniViewSpec::setPlayer);
|
||||
prototype.registerHybridGetter("autoplay", &HybridOmniViewSpec::getAutoplay);
|
||||
prototype.registerHybridSetter("autoplay", &HybridOmniViewSpec::setAutoplay);
|
||||
prototype.registerHybridGetter("showNotification", &HybridOmniViewSpec::getShowNotification);
|
||||
|
||||
Reference in New Issue
Block a user