smaad-offerwall
v0.1.0
Published
smaad-offerwall react native sdk
Downloads
977
Readme
smaad-offerwall
Smaad webview
Publish to npm
- Login to npm
npm login
- Pack your library
npm pack
- Publish your library with the below command:
npm publish
Installation
npm install react-native-webview smaad-offerwall
or
yarn add react-native-webview smaad-offerwall
Usage
In your App.js (or App.tsx)
import { CustomWebviewPortal } from 'smaad-offerwall';
// ...
const App = () => {
// ...
return (
<SafeAreaProvider>
<SafeAreaView style={CommonStyles.container}>
<NativeBaseProvider>
<Provider store={store}>
<StatusBar
backgroundColor={'transparent'}
barStyle={'dark-content'}
/>
<Navigation />
{/* Add Custom webview here */}
<CustomWebviewPortal />
</Provider>
</NativeBaseProvider>
</SafeAreaView>
</SafeAreaProvider>
)
}
export default App
In somewhere want to use
const domainSettings = [
'dev.fusion-wall.smaad.net',
'dev.fusion-wall2.smaad.net',
'offerwall.stg.smaad.net',
'offerwall.dev.smaad.net',
'wall.smaad.net',
'offerwall.smaad.net',
];
CustomWebviewPortal.show(text, { whiteListDomain: domainSettings });
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library