1.0.8 • Published 2 years ago

react-native-app-promoter v1.0.8

Weekly downloads
8
License
MIT
Repository
-
Last release
2 years ago

react-native-app-promoter

Upsell and promote your "other app"

Display a overlay with using SKOverlay which you can recommend other apps to users and allow them to download the app immediately. For more information 👉 SKOverlay Documentation

Getting started

npm install react-native-app-promoter --save

or

yarn add react-native-app-promoter

then

cd ios && pod install and run your project 🔥 This step probably works. (on iOS 14📱)

Android

No android. Sorry. But it's fail safe. Won't crash on Android. 👉🌼

🧠 Usage

You have to pass two argument when calling Promote()

  • Your awesome App id as string

  • Bool for choosing raised banner or standart. Raised one slightly higher than the normal one.

Check the example 👇🏻

import Promote from 'react-native-app-promoter';

const App: () => React$Node = () => {

  const triggerBanner = () => {
    Promote('1526811408', true);
  };

  return (
    <>
      <StatusBar barStyle="light-content" />
      <View style={styles.engine}>
        <TouchableOpacity
          onPress={() => {
            triggerBanner();
          }}>
          <Text style={styles.footer}>Trigger Banner</Text>
        </TouchableOpacity>
      </View>
    </>
  );
};

🗺 Road Map

  • Solution for Android side 🤔
1.0.8

2 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago