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

@geckoui/nativewind

v0.1.1

Published

GeckoUI component library for React Native + NativeWind

Downloads

202

Readme

@geckoui/nativewind

Component library for React Native apps using NativeWind v4 + Tailwind CSS v3.

npm

Install

npx expo install nativewind react-native-safe-area-context
npx expo install --dev tailwindcss postcss-import
npm install @geckoui/nativewind

tailwindcss must be ^3 — NativeWind v4 does not support Tailwind v4. npx expo install pins the correct version automatically.

Peer dependencies

| Package | Min version | |---|---| | react | >=18 | | react-native | >=0.73 | | nativewind | >=4 | | react-native-safe-area-context | >=4 |

Setup

1. babel.config.js

module.exports = function (api) {
  api.cache(true);
  return {
    presets: [
      ['babel-preset-expo', { jsxImportSource: 'nativewind' }],
      'nativewind/babel',
    ],
  };
};

2. postcss.config.js

module.exports = {
  plugins: {
    'postcss-import': {},
    tailwindcss: {},
    autoprefixer: {},
  },
};

3. tailwind.config.js

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: ['./App.tsx', './app/**/*.{js,jsx,ts,tsx}'],
  presets: [
    require('nativewind/preset'),
    require('@geckoui/nativewind/preset'),
  ],
  theme: { extend: {} },
  plugins: [],
};

No node_modules/@geckoui/... entry needed in content — our preset safelists every GeckoUI* class.

4. global.css

@import '@geckoui/nativewind/styles.css';

@tailwind base;
@tailwind components;
@tailwind utilities;

5. metro.config.js

const { getDefaultConfig } = require('expo/metro-config');
const { withNativeWind } = require('nativewind/metro');

module.exports = withNativeWind(getDefaultConfig(__dirname), {
  input: './global.css',
});

6. nativewind-env.d.ts

/// <reference types="nativewind/types" />

7. tsconfig.json

{
  "extends": "expo/tsconfig.base",
  "compilerOptions": {
    "strict": true,
    "types": ["nativewind/types"]
  }
}

8. App entry — wrap in providers

import './global.css';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { GeckoUIPortal } from '@geckoui/nativewind';

export default function App() {
  return (
    <SafeAreaProvider>
      {/* your screens */}
      <GeckoUIPortal />
    </SafeAreaProvider>
  );
}

<GeckoUIPortal /> hosts Dialog, Drawer, Toast, Tooltip, and the Select bottom-sheet menu — render it once at the app root.

Usage

import { Button, Input, Select, SelectOption } from '@geckoui/nativewind';

<Input placeholder="Email" value={email} onChangeText={setEmail} />

<Select value={country} onChange={setCountry} placeholder="Country" filterable>
  <SelectOption value="us" label="United States" />
  <SelectOption value="uk" label="United Kingdom" />
</Select>

<Button onPress={submit}>Continue</Button>
<Button variant="outlined" onPress={cancel}>Cancel</Button>

What's included

  • Form: Input, Textarea, Checkbox, Radio, Switch, Select (single + multi + filterable), DateInput, DateRangeInput, OTPInput, CounterInput, Label, InputError
  • Feedback: Alert, Toast, Tooltip, Spinner, LoadingButton
  • Overlays: Dialog, ConfirmDialog, Drawer, Menu, Calendar
  • Layout / utilities: Button, Pagination, GeckoUIPortal, DynamicComponentRenderer

Theming

Every color is a CSS variable defined in styles.css:

:root {
  --color-primary-600: #5b5bd6;
  --color-text-primary: #1a1a1a;
  /* ... */
}

.dark {
  --color-primary-600: #7979e8;
  /* dark overrides */
}

Override any token in your global.css to retheme the entire library.

Class-based dark mode (darkMode: 'class') — toggle the dark class on a parent View to switch.

Override per component

Three escape hatches, in order of precedence:

{/* 1. style prop — single instance, bypasses NativeWind */}
<Button style={{ borderRadius: 999 }}>Pill</Button>

{/* 2. className prop — single instance */}
<Button className="bg-emerald-600">Save</Button>

{/* 3. CSS class override in global.css — affects all instances */}
<style>{`
  @layer components {
    .GeckoUIButton--filled-primary { @apply bg-emerald-600; }
  }
`}</style>

Looking for forms?

See @geckoui/nativewind-rhf — React Hook Form wrappers for every input in this package.

License

MIT