项目作者: stevenselcuk

项目描述 :
A React Native package for promoting and upselling your awesome app with using SKOverlay on React Native app. Works on iOS 14 (obviously)
高级语言: Java
项目地址: git://github.com/stevenselcuk/react-native-app-promoter.git
创建时间: 2020-09-26T11:08:44Z
项目社区:https://github.com/stevenselcuk/react-native-app-promoter

开源协议:MIT License

下载


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 👇🏻

  1. import Promote from 'react-native-app-promoter';
  2. const App: () => React$Node = () => {
  3. const triggerBanner = () => {
  4. Promote('1526811408', true);
  5. };
  6. return (
  7. <>
  8. <StatusBar barStyle="light-content" ></StatusBar>
  9. <View style={styles.engine}>
  10. <TouchableOpacity
  11. onPress={() => {
  12. triggerBanner();
  13. }}>
  14. <Text style={styles.footer}>Trigger Banner</Text>
  15. </TouchableOpacity>
  16. </View>
  17. </>
  18. );
  19. };

🗺 Road Map

  • Solution for Android side 🤔