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

conekta-elements-react-native

v0.0.1

Published

React Native wrapper for Conekta Elements Compose UI

Downloads

198

Readme

conekta-elements-react-native

React Native wrapper for Conekta Elements — renders the native Compose UI directly on Android and iOS via a thin JavaScript bridge.

Requirements

| Platform | Minimum version | |----------|----------------| | Android | API 24 (Android 7.0) | | iOS | 14.0 | | React Native | 0.71+ |

Installation

npm install conekta-elements-react-native

iOS

cd ios && pod install

pod install automatically downloads the Compose XCFramework from GitHub releases.

Android

Autolinking registers the module automatically. No additional configuration is required.

Usage

import React, { useState } from 'react';
import { SafeAreaView } from 'react-native-safe-area-context';
import { ConektaTokenizer } from 'conekta-elements-react-native';
import type { TokenResult, TokenizerError } from 'conekta-elements-react-native';

export default function CheckoutScreen() {
  const [token, setToken] = useState('');

  function handleSuccess(result: TokenResult) {
    console.log('Token:', result.token, 'Last four:', result.lastFour);
    setToken(result.token);
  }

  function handleError(error: TokenizerError) {
    console.error(`[${error.type}] ${error.message}`);
  }

  return (
    <SafeAreaView style={{ flex: 1 }}>
      <ConektaTokenizer
        config={{
          publicKey: 'key_XXXXXXXXXXXXXXXX',
          merchantName: 'Mi Tienda',
        }}
        onSuccess={handleSuccess}
        onError={handleError}
        style={{ flex: 1 }}
      />
    </SafeAreaView>
  );
}

API

<ConektaTokenizer />

| Prop | Type | Required | Description | |------|------|----------|-------------| | config | TokenizerConfig | Yes | Public key and merchant settings | | onSuccess | (result: TokenResult) => void | Yes | Called when tokenization succeeds | | onError | (error: TokenizerError) => void | Yes | Called when tokenization fails | | style | StyleProp<ViewStyle> | No | View style |

TokenizerConfig

| Field | Type | Default | Description | |-------|------|---------|-------------| | publicKey | string | — | Conekta public key | | merchantName | string | "Demo Store" | Merchant name shown in the UI |

TokenResult

{ token: string; lastFour: string }

TokenizerError

| { type: 'ValidationError'; message: string }
| { type: 'NetworkError';    message: string }
| { type: 'ApiError'; code: string; message: string }

Expo

This library contains native code and has the following compatibility:

| Expo workflow | Compatible | |---------------|-----------| | Expo Go | No | | Development Build | Yes | | Bare workflow | Yes | | EAS Build | Yes |

Expo Go is not supported. It is a sandboxed app with a fixed set of native modules and cannot load custom native code.

To use this library with Expo, create a development build:

npx expo install expo-dev-client

# Build locally
npx expo run:ios
npx expo run:android

# Or build with EAS
eas build --profile development

After that, autolinking picks up the module automatically and the library works as usual.

Development

git clone https://github.com/conekta/conekta-elements-react-native.git
cd conekta-elements-react-native
npm install

Scripts

npm test          # Run tests
npm run test:watch # Run tests in watch mode
npx tsc --noEmit  # Type check

Example app

# Android
cd example && npx react-native run-android

# iOS
cd example/ios && pod install && cd ..
npx react-native run-ios

License

MIT