npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-maio

v1.0.1

Published

test

Readme

React Native x Maio SDK

Installation

Install package:

yarn add react-native-maio

Linking

  1. Auto link
npx react-native link react-native-maio
  1. Manual link

Configure

  1. iOS
  • Open your Info.plist and add:
<key>SKAdNetworkItems</key>
<array>
    <dict>
        <key>SKAdNetworkIdentifier</key>
        <string>v4nxqhlyqp.skadnetwork</string>
    </dict>
</array>
<key>MaioMediaEID</key>
<string>DemoMediaForIOS</string>

Replace DemoMediaForIOS by your Media ID from Maio console.

  • Add MaioSDK to your Podfile:
target 'MyApp' do
  ...
  pod 'MaioSDK'
end

And run cd ios && pod install

  1. Android

Add in your build.gradle:

maven{
    url "https://imobile-maio.github.io/maven"
}

Add in your app/build.gradle:

dependencies {
    ...
    implementation 'com.google.android.gms:play-services-ads:+'
    ...
}

Open your AndroidManifest.xml:

<application>
    ...
    <meta-data
        android:name="com.google.android.gms.ads.APPLICATION_ID"
        android:value="ApplicationID" />
    <meta-data
        android:name="com.rnmaio.media_eid"
        android:value="DemoPublisherMediaForAndroid" />
    <activity
      android:name="jp.maio.sdk.android.AdFullscreenActivity"
      android:configChanges="orientation|screenLayout|screenSize|smallestScreenSize"
      android:hardwareAccelerated="true"
      android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
    </activity>
    <activity
      android:name="jp.maio.sdk.android.HtmlBasedAdActivity"
      android:configChanges="keyboardHidden|orientation|screenSize|screenLayout"
      android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
    </activity>
</application>

Replace

  • ApplicationID by your App ID(ca-app-pub-xxxxx~xxxxx) from Google ADMob console.
  • DemoPublisherMediaForAndroid by your Media ID from Maio console.

Usage

  1. addMaioListener: Listen Maio's events
import { addMaioListener } from "react-native-maio"

...
React.useEffect(() => {
  addMaioListener((event: MaioEvent) => {
  switch (event.type) {
    case EventType.initialized:
      console.log("Maio Initialized with v" + event.version)
      break
    case EventType.opened:
    case EventType.started:
    case EventType.clicked:
    case EventType.closed:
    case EventType.finished:
      console.log('ADS finished with skipped = ', event.skipped);
      break
    case EventType.error:
      console.log(event.error)
      break
    }
  });
}, [])
...
  1. isAdvertisingReady: Check ADS is ready or not
import { isAdvertisingReady } from "react-native-maio"

const isADSReady = await isAdvertisingReady()
  1. onShowAdvertising: Show ADS
import { onShowAdvertising } from "react-native-maio"

onShowAdvertising()
  1. onCheckAndShowAdvertising: if ADS ready, show it.
import { onCheckAndShowAdvertising } from "react-native-maio"

onCheckAndShowAdvertising()

Made with create-react-native-library