https://github.com/stevenselcuk/react-native-app-promoter
A React Native package for promoting and upselling your awesome app with using SKOverlay on React Native app. Works on iOS 14 (obviously)
https://github.com/stevenselcuk/react-native-app-promoter
ios mobile-app react-native react-native-bridge storekit
Last synced: 4 months ago
JSON representation
A React Native package for promoting and upselling your awesome app with using SKOverlay on React Native app. Works on iOS 14 (obviously)
- Host: GitHub
- URL: https://github.com/stevenselcuk/react-native-app-promoter
- Owner: stevenselcuk
- License: mit
- Created: 2020-09-26T11:08:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-10-12T13:31:35.000Z (over 3 years ago)
- Last Synced: 2025-05-13T00:49:57.067Z (about 1 year ago)
- Topics: ios, mobile-app, react-native, react-native-bridge, storekit
- Language: Java
- Homepage:
- Size: 17.6 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://developer.apple.com/documentation/storekit/skoverlay)
## 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 👇🏻
```javascript
import Promote from 'react-native-app-promoter';
const App: () => React$Node = () => {
const triggerBanner = () => {
Promote('1526811408', true);
};
return (
<>
{
triggerBanner();
}}>
Trigger Banner
>
);
};
```
### 🗺 Road Map
- [ ] Solution for Android side 🤔