<aside> ⛔ The repository is deprecated use https://www.npmjs.com/package/@react-stateless-dialog/core instead

</aside>

react-native-global-flow is a powerful React Native library that allows developers to effortlessly show important information to users within their apps. With a range of versatile features, including a customizable banner, a global progress modal, and a convenient dialog manager, this library simplifies the process of delivering essential messages to your user without the need of managing painful states.

Key Features:

Know issues & Improvements

Installation & Setup

yarn add @boltcode/react-native-global-flow

# The library rely on react-native-reanimated & react-native-safe-area-context, you need to install these packages in your project
# react-native-reanimated, minimum version 3.3.0
yarn add react-native-reanimated react-native-safe-area-context

Setup react-native-reanimated:

// Add this to your babel.config.js :
plugins: ['react-native-reanimated/plugin']

Setup the provider:

import { SafeAreaProvider } from 'react-native-safe-area-context';
import { GlobalFlowProvider } from '@boltcode/react-native-global-flow';

const App = () => {
  // Note: SafeAreaProvider is required to make the library working
  return (
    <SafeAreaProvider>
      <GlobalFlowProvider>
          {/* Your app */}
      </GlobalFlowProvider>
    </SafeAreaProvider>
  );
};

Usage