Sha256: 97159aa12db77c68d55138d1df68f689ffe5e5a11e8fbbaeb50f36367257884f

Contents?: true

Size: 854 Bytes

Versions: 1

Compression:

Stored size: 854 Bytes

Contents

module LucidComponent
  module Mixin
    def self.included(base)
      base.include(::Native::Wrapper)
      base.extend(::LucidComponent::NativeLucidComponentConstructor)
      if on_browser? || on_ssr?
        base.extend(::LucidComponent::NativeComponentConstructor)
        base.include(::React::Component::Elements)
      elsif on_mobile?
        base.extend(::LucidComponent::ReactNativeComponentConstructor)
        base.include(::ReactNative::Component::Elements)
      end
      base.extend(::LucidPropDeclaration::Mixin)
      base.include(::React::Component::Api)
      base.include(::React::Component::Callbacks)
      base.include(::LucidComponent::Api)
      base.include(::LucidComponent::StylesApi)
      base.include(::LucidComponent::Initializer)
      base.include(::React::Component::Features)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
isomorfeus-react-16.13.12 lib/isomorfeus_react/lucid_component/mixin.rb