module LucidFunc::Mixin

Public Class Methods

included(base) click to toggle source
# File lib/isomorfeus_react/lucid_func/mixin.rb, line 3
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