Sha256: 9e5e493097244c62685c07f959ec0d2827b5afdb4d58796f2cd93572081a5155

Contents?: true

Size: 615 Bytes

Versions: 1

Compression:

Stored size: 615 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
isomorfeus-react-16.13.11 lib/isomorfeus_react/lucid_func/mixin.rb