0.1.0 • Published 10 months ago

smaad-offerwall v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

smaad-offerwall

Smaad webview

Publish to npm

  1. Login to npm
npm login
  1. Pack your library
npm pack
  1. 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

0.1.0

10 months ago