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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@aguacerowx/react-native

v0.0.35

Published

Native weather rendering for React Native

Readme

@aguacerowx/react-native

Welcome to the official React Native SDK for AguaceroWX.

Installation

npm install @aguacerowx/react-native

Important Prerequisite: Mapbox SDK v11

This library is built on top of @rnmapbox/maps and requires the Mapbox Maps SDK v11 for both iOS and Android. You must perform the following manual setup steps to configure your project correctly.

iOS Setup

You must explicitly enable Mapbox SDK v11 in your iOS project.

Modify your Podfile

Open your project's ios/Podfile and add the following lines near the top of the file. This tells the @rnmapbox/maps library to use a v11 version of the native SDK.

# Add these lines near the top of your ios/Podfile
require_relative '../node_modules/@rnmapbox/maps/scripts/mapbox-rb'
$RNMapboxMapsVersion = '~> 11.0' # This enforces Mapbox SDK v11
use_mapbox_maps!

Enable Modular Headers (Required for New Architecture)

If you're using React Native's new architecture (newArchEnabled: true), you must enable modular headers.

For Expo Projects (Recommended)

If you're using Expo, add the expo-build-properties plugin to your app.config.js or app.config.ts:

npm install expo-build-properties

Then add it to your Expo config:

// app.config.ts
export default {
  // ... other config
  plugins: [
    // ... other plugins
    [
      'expo-build-properties',
      {
        ios: {
          useFrameworks: 'static',
          useModularHeaders: true,  // Add this line
        },
      },
    ],
  ],
};

Then run:

npx expo prebuild --clean

For Non-Expo React Native Projects

Option 1: Enable modular headers globally (Recommended)

Add this line after the platform :ios line in your ios/Podfile:

platform :ios, '13.4'
use_modular_headers!  # Add this line

prepare_react_native_project!

Option 2: Enable modular headers in post_install hook

Add this code inside your post_install do |installer| block:

post_install do |installer|
  # Enable modular headers for libzstd
  installer.pods_project.targets.each do |target|
    if target.name == 'libzstd'
      target.build_configurations.each do |config|
        config.build_settings['DEFINES_MODULE'] = 'YES'
      end
    end
  end
  
  # ... rest of your existing post_install code
end

Install Pods

After saving the Podfile, navigate to your ios directory in the terminal and run a fresh pod installation.

cd ios
pod install

Android Setup

Android requires configuration for Mapbox credentials and an additional native dependency.

Configure Mapbox Credentials

You will need a secret token with DOWNLOADS:READ scope and a public token.

In your android/gradle.properties file, add your secret token:

# android/gradle.properties
MAPBOX_DOWNLOADS_TOKEN=sk.xxxxxxxxxx

In your android/app/build.gradle file, add your public token inside the defaultConfig block:

// android/app/build.gradle
android {
    defaultConfig {
        // ... other configs
        buildConfigField "String", "MAPBOX_ACCESS_TOKEN", "\"pk.xxxxxxxxxx\""
    }
}

After completing these steps, your application should be correctly configured to use the library. For more detailed information or troubleshooting, please refer to the official @rnmapbox/maps documentation.