Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

momo-component-kits

Package Overview
Dependencies
Maintainers
3
Versions
311
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

momo-component-kits

Momo Component Kits

  • 0.10.3-8.1
  • unpublished
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source


Momo Component Kits

Installing

Use yarn

yarn add momo-component-kits

Or npm

npm i momo-component-kits

Usage

MomoButton

import { MomoButton, MomoIcons, ButtonType } from 'momo-component-kits'

// primary
<MomoButton
    text="Momo Button"
    type={ButtonType.primary}
/>

// primary border
<MomoButton
    text="Momo Button"
    type={ButtonType.primaryBorder}
/>

// primary border with icon
<MomoButton
    icon={MomoIcons.ic_close_24}
    text="Custom Text Style"
    type={ButtonType.primaryBorder}
/>


MomoTextInput


BrandInfo


SelectionItem


MomoHintBox


DisplayPopup


Avatar


RoundTextInput


UserShortedInfo


IconText


UnderlineTextInput


CalculatorTextInput

Register keyboard for app


import {KeyboardCalculator} from 'momo-component-kits';

AppRegistry.registerComponent('KeyboardCalculator', () => KeyboardCalculator);


const keyboardTypeRegistry = {};

export function register(type, factory) {
    keyboardTypeRegistry[type] = factory;
}

class CustomKeyboardContainer extends Component {
    render() {
        const { tag, type } = this.props;
        const factory = keyboardTypeRegistry[type];
        if (!factory) {
            // console.warn(`Custom keyboard type ${type} not registered.`);
            return null;
        }
        const Comp = factory();
        return <Comp tag={tag} />;
    }
}

AppRegistry.registerComponent('CustomKeyboard', () => CustomKeyboardContainer);

KeyboardHeaderSticky

(Only work with CalculatorTextInput Keyboard)

MoneySuggestionList


MomoCardView


MomoCoverFlow


MomoCarousel


MomoSkeleton


ScrollViewHeader


Changes log

v0.10.38

Add new components

MomoCarousel

MomoSkeleton

MomoCoverFlow

MomoCardView

ScrollViewHeader

Components

See more details

Click here

FAQs

Package last updated on 21 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc