Sha256: 91b5679c60bb12931c95b5fc013cd9fc33d7b78799e5abc293c20eae20b2c583

Contents?: true

Size: 533 Bytes

Versions: 5

Compression:

Stored size: 533 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
isomorfeus-react-16.13.11 lib/isomorfeus_react/react/memo_component/mixin.rb
isomorfeus-react-16.13.10 lib/isomorfeus_react/react/memo_component/mixin.rb
isomorfeus-react-16.13.9 lib/isomorfeus_react/react/memo_component/mixin.rb
isomorfeus-react-16.13.8 lib/isomorfeus_react/react/memo_component/mixin.rb
isomorfeus-react-16.13.7 lib/isomorfeus_react/react/memo_component/mixin.rb