MCPcopy
hub / github.com/jpudysz/react-native-unistyles

github.com/jpudysz/react-native-unistyles @v3.2.5 sqlite

repository ↗ · DeepWiki ↗ · release v3.2.5 ↗
354 symbols 865 edges 190 files 0 documented · 0%
README

react-native-unistyles

npm version npm downloads npm downloads License: MIT

platform - expo platform - web platform - ios platform - android platform - ssr

Installation

yarn add react-native-unistyles

Install dependencies:

yarn add react-native-nitro-modules
react-native-unistyles Minimum react-native-nitro-modules
>= 3.0.0 >= 0.33.9
>= 3.1.0 >= 0.35.0
>= 3.2.0 >= 0.35.2

Note: Since v3.1.0, react-native-edge-to-edge is an optional dependency. We strongly recommend setting edgeToEdgeEnabled=true in your android/gradle.properties — it enforces translucent system bars on modals, disables legacy StatusBar hacks, and enables additional React Native core fixes. Expo SDK 54+ enables this automatically. You can still install react-native-edge-to-edge for ecosystem compatibility with libraries like react-native-bootsplash or react-native-permissions.

Then follow installation guides for your platform.

Documentation

Features

  • 🚀 Shared core with C++ and JSI bindings
  • 🏎️ Powered by Nitro Modules
  • 🦸🏼‍♂️ No re-renders
  • 🦄 Custom web parser, classes and pseudo classes
  • ⚛️ Tightly integrated with Fabric and Shadow Tree
  • 🔥 Crazy performance, adds under 0.1 ms to your StyleSheet
  • 🎳 Share up to 100% of your styles across platforms in monorepo
  • 🎯 Doesn't introduce new components, your view hierarchy is always clean
  • 🎨 Register multiple themes and change them with single function call
  • and much much more!

Sponsors

codemask galaxies-dev ryanlanciaux jordmccord kerwanp andkindness

Past sponsors

kmartinezmedia levibuzolic claudesortwell luoxuhai anonymous abanobboles hyoban giovannilondero 4cc3ssX FilipiRafael dacoto97 chinamcafee guillaumehcht FTCHD avega99 oscklm loopsware mobily mwarger happyfloat cargurus-oss-fund rauchg oliverloops biw cybercarrot AdiRishi

Sponsor my work

How to become a sponsor?

If you found the react-native-unistyles time-saving and valuable, please consider sponsoring my work. Your support enables me to continue creating libraries with a fresh approach.

Github: https://github.com/sponsors/jpudysz

Ko-fi: https://ko-fi.com/jpudysz

Your support is greatly appreciated and helps me dedicate more time and resources to creating quality libraries. Thank you for all the support!

Discord

Looking for help or you want to chat with me?

Join Discord

License

MIT

Extension points exported contracts — how you extend this code

RemapImport (Interface)
(no doc)
packages/unistyles/plugin/index.d.ts
TypographyProps (Interface)
(no doc)
apps/example/Typography.tsx
UnistylesThemes (Interface)
(no doc)
apps/expo-example/unistyles.ts
RemapConfig (Interface)
(no doc)
packages/unistyles/plugin/index.d.ts
UnistylesThemes (Interface)
(no doc)
apps/example/unistyles.ts
UnistylesBreakpoints (Interface)
(no doc)
apps/expo-example/unistyles.ts
UnistylesPluginOptions (Interface)
(no doc)
packages/unistyles/plugin/index.d.ts
UnistylesBreakpoints (Interface)
(no doc)
apps/example/unistyles.ts

Core symbols most depended-on inside this repo

add
called by 42
packages/unistyles/src/specs/ShadowRegistry/index.ts
isServer
called by 25
packages/unistyles/src/web/utils/common.ts
createUnistylesElement
called by 17
packages/unistyles/src/core/createUnistylesElement.tsx
remove
called by 15
packages/unistyles/src/specs/ShadowRegistry/index.ts
normalizeNumericValue
called by 15
packages/unistyles/src/web/convert/utils.ts
error
called by 14
packages/unistyles/src/web/utils/common.ts
getScopedTheme
called by 13
packages/unistyles/src/specs/ShadowRegistry/index.ts
getTheme
called by 13
packages/unistyles/src/specs/UnistylesRuntime/index.ts

Shape

Function 211
Method 82
Interface 34
Class 20
Enum 7

Languages

TypeScript100%

Modules by API surface

packages/unistyles/plugin/index.js37 symbols
packages/unistyles/src/web/runtime.ts23 symbols
packages/unistyles/src/specs/NativePlatform/NativePlatform.nitro.ts21 symbols
packages/unistyles/plugin/src/stylesheet.ts13 symbols
packages/unistyles/src/specs/ShadowRegistry/index.ts12 symbols
packages/unistyles/src/web/utils/unistyle.ts11 symbols
packages/unistyles/repack-plugin/index.js10 symbols
packages/unistyles/plugin/src/index.ts10 symbols
packages/unistyles/src/web/utils/common.ts9 symbols
packages/unistyles/src/specs/UnistylesRuntime/index.ts9 symbols
packages/unistyles/src/web/css/state.ts8 symbols
packages/unistyles/src/web/convert/utils.ts8 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

@astrojs/check0.9.6 · 1×
@astrojs/sitemap3.7.0 · 1×
@astrojs/starlight0.37.6 · 1×
@babel/core7.29.0 · 1×
@babel/plugin-syntax-jsx7.28.6 · 1×
@babel/preset-env7.29.0 · 1×
@babel/runtime7.28.6 · 1×
@babel/types7.29.0 · 1×
@callstack/repack5.2.4 · 1×
@commitlint/config-conventional20.4.2 · 1×
@expo/metro-config56.0.13 · 1×
@expo/metro-runtime56.0.13 · 1×

For agents

$ claude mcp add react-native-unistyles \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact