lib/react/component/mixin.rb in isomorfeus-react-16.13.6 vs lib/react/component/mixin.rb in isomorfeus-react-16.13.7
- old
+ new
@@ -3,10 +3,14 @@
module Mixin
def self.included(base)
base.include(::Native::Wrapper)
base.extend(::React::Component::NativeComponentConstructor)
base.extend(::LucidPropDeclaration::Mixin)
- base.include(::React::Component::Elements)
+ if on_browser? || on_ssr?
+ base.include(::React::Component::Elements)
+ elsif on_mobile?
+ base.include(::ReactNative::Component::Elements)
+ end
base.include(::React::Component::Api)
base.include(::React::Component::Callbacks)
base.include(::React::Component::Initializer)
base.include(::React::Component::Features)
end