1.0.1 • Published 4 years ago

react-native-interstitial-with-url-shortening v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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 |