npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-stack-flash-message

v1.4.0

Published

Stack flash message component for React Native

Downloads

9

Readme

react-native-stack-flash-message

React Native 를 위한 Stack Flash Message 컴포넌트

Features

  • 하나의 플래시 메세지 컴포넌트를 모든 컴포넌트들에서 호출할 수 있습니다
  • 쌓이는 플래쉬 메세지를 보여줍니다
  • 사용자에게 시스템 메세지를 여러 개 보여줄 수 있습니다
  • 메세지 내의 아이콘을 설정할 수 있고, 메세지의 테마를 지정할 수 있습니다

Demo

| iOS | Android | | --- | --- | | iOS Demo | Android Demo |

Installation

yarn add react-native-stack-flash-message

또는

npm install react-native-stack-flash-message

Usage

// ...
import StackFlashMessage from 'react-native-stack-flash-message';

const App: React.FC = () => {
  const flash = (options: Options) => {
    StackFlashMessage.show(options);
  };
  const successFlash = () => {
    flash({
      type: 'success',
      title: '안녕!',
      contents: '이 곳에 내용을 입력해봐!',
      duration: Math.random() * 1000,
    });
  };
  const infoFlash = () => {
    flash({
      type: 'info',
      title: '안녕!',
      contents: '이 곳에 내용을 입력해봐!',
    });
  };
  const errorFlash = () => {
    flash({
      type: 'error',
      title: '안녕!',
      contents: '이 곳에 내용을 입력해봐!',
    });
  };

  return (
    <SafeAreaView>
      <StackFlashMessage
        ref={(ref) => StackFlashMessage.setRef(ref)}
      />

      <TouchableOpacity onPress={successFlash}>
        <Text>Success 플래시 메세지</Text>
      </TouchableOpacity>

      <TouchableOpacity onPress={infoFlash}>
        <Text>Info 플래시 메세지</Text>
      </TouchableOpacity>

      <TouchableOpacity onPress={errorFlash}>
        <Text>Error 플래시 메세지</Text>
      </TouchableOpacity>
    </SafeAreaView>
  );
};

Props

| 이름 | 기본값 | 설명 | |--------------------------------------------------------------------|----------------------------------------------------------------|---------------------------| | containerStyle?: ViewStyle | undefined | 메세지들을 감싸고 있는 Node의 스타일 | | messageContainerStyle?: ViewStyle | undefined | 메세지 전체를 감싸고 있는 Node의 스타일 | | messageWrapperStyle?: ViewStyle | undefined | 메세지를 감싸고 있는 Node의 스타일 | | messageStyle?: ViewStyle | undefined | 메세지 Node의 스타일 | | contentsWrapperStyle?: ViewStyle | undefined | 제목 및 설명을 감싸고 있는 Node의 스타일 | | titleProps?: TextProps & { [key: string]: any } | undefined | 제목의 props | | contentsProps?: TextProps & { [key: string]: any } | undefined | 설명의 props | | titleComponent?: ElementType | Text | 제목 컴포넌트 | | contentsComponent?: ElementType | Text | 설명 컴포넌트 | | theme?: { success: string, info: string, error: string } | { success: 'blue', info: 'green', error: 'red' } | 메세지들의 테마 | | icon?: { success: ReactNode, info: ReactNode, error: ReactNode } | { success: Image 컴포넌트, info: Image 컴포넌트, error: Image 컴포넌트 } | 테마별 메세지의 아이콘 | | visibleProgress?: boolean | true | Progress 노출 여부 |

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT