react-native-intersitial-with-url-shortening

react native intersitial with url shortening


Keywords
react-native, react-native-component, mobile, ios, android, intersitial, url-shortening, adf.ly, ouo.io, url, shortening, ads, adfly, component, intersisital, ouoio, webview
License
MIT
Install
npm install react-native-intersitial-with-url-shortening@1.0.0

Documentation

React Native Interstitial With URL Shortening

Enable unsafe links (http) to avoid not showing ads (adf.ly, ouo.io, etc): https://blog.bigbinary.com/2016/07/27/open-non-https-sites-in-webview-in-react-native.html

Add react-native-webview: https://github.com/react-native-community/react-native-webview/blob/master/docs/Getting-Started.md

Add react-native-interstitial-with-url-shortening:

yarn add react-native-interstitial-with-url-shortening
import InterstitialWithUrlShortening from 'react-native-interstitial-with-url-shortening';
<InterstitialWithUrlShortening 
    ads_url={"http://morebatet.com/13vk"}
    shortened_url={"https://reactnative.dev/"}
    height={"100%"}
    width={"100%"}
    onChange={() => console.log('Finshed!')}
/>

Properties:

Prop Type Description
ads_url string adf.ly / ouo.io url shortened
shortened_url string Destination url
height string or number Height of the webview
width string or number Width of the webview
onChange function Called when the user clicks on skip ad