You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

rnc-theme

Package Overview
Dependencies
Maintainers
0
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rnc-theme

> A powerful and flexible theming system for React Native applications with TypeScript support.

0.1.2
latest
Source
npmnpm
Version published
Weekly downloads
103
-71.7%
Maintainers
0
Weekly downloads
 
Created
Source

🎨 RNC Theme

A powerful and flexible theming system for React Native applications with TypeScript support.

npm version npm downloads TypeScript React Native Expo License: MIT Platforms

📦 Peer Dependencies

PackageVersionDescription
⚛️ react>=19.0.0React library
📱 react-native>=0.79.3React Native framework
🎭 react-native-reanimated>=3Advanced animations
👆 react-native-gesture-handler>=2Gesture interactions
💾 @react-native-async-storage/async-storage>=2Local storage
🎨 lucide-react-native>=0.513.0Icon library
📅 react-native-calendars>=1.1286.0Calendar components
🧭 @react-navigation/native>=6Navigation
🛡️ react-native-safe-area-context>=4Safe area handling
🌍 expo-localization>=16.1.5Locale detection
🗣️ i18n-js>=4.5.1Internationalization
🚀 @shopify/flash-list>=1.8.0Optimized list rendering

✨ Features

  • 🎯 Type-Safe - Full TypeScript support with comprehensive type definitions
  • 🎨 Dynamic Theme Switching - Seamless light/dark mode transitions
  • 📱 React Native Optimized - Built specifically for React Native performance
  • 💾 Persistent Storage - Automatically saves theme preferences
  • 🎭 8+ Built-in Presets - Material, Neon, Ocean, Cyberpunk, and more
  • 🔄 Theme Registry - Register and manage multiple theme configurations

🚀 Installation

npm install rnc-theme
# or
yarn add rnc-theme
# or
pnpm add rnc-theme
# or
bun add rnc-theme

⚡ Quick Start

1. Setup Theme Provider

import React from 'react';
import { RNCProvider } from 'rnc-theme';
import App from './App';
import { GestureHandlerRootView } from 'react-native-gesture-handler';

export default function Root() {
  return (
    <GestureHandlerRootView>
      <RNCProvider>
        <App />
      </RNCProvider>
    </GestureHandlerRootView>
  );
}

2. Using Themes in Components

import React from 'react';
import { View, Text, StyleSheet } from 'react-native';
import { useTheme, useThemedStyles } from 'rnc-theme';

const MyComponent = () => {
  const { theme, isDark, setThemeMode } = useTheme();
  const styles = useThemedStyles(createStyles);

  return (
    <View style={styles.container}>
      <Text style={styles.text}>Hello World!</Text>
    </View>
  );
};

const createStyles = (theme) => StyleSheet.create({
  container: {
    backgroundColor: theme.colors.background,
    padding: theme.spacing.md,
  },
  text: {
    color: theme.colors.text,
    fontSize: theme.fontSizes.md,
  },
});

📄 License

MIT License - see LICENSE file for details.

Made with ❤️ for the React Native community

DocumentationGitHubNPM

Keywords

react-native

FAQs

Package last updated on 25 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts