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.40
  • 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


MomoTypography


ScrollViewHeader


MomoToast


MomoLine


Changes log

v0.10.39.1

New components
Update
  • update default style
  • add show and hide function

v0.10.39

New components
Update
  • fix bugs: header show when scroll to bottom
  • add focusBorderColor, focusBackgroundColor
  • add rightComponent
  • able to hide rightIcon

Components

See more details

Click here

FAQs

Package last updated on 24 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