Skip to content

inkless/unistyles-mock

Repository files navigation

Unistyles Mock

Get Started

Download the code to your own project or if you want to:

pnpm add inkless/unistyles-mock -D

Create a __mocks__/react-native-unistyles.js in your project root.

// require your theme directly
const theme = require('path/to/theme');

// If you download the code, this is assuming you do support typescript transpile, I didn't transpile to js in this repo
const { createUniStylesMock } = require('path/to/unistyles-mock');

// if you use npm/pnpm/yarn
const { createUniStylesMock } = require('unistyles-mock');

module.exports = createUniStylesMock(theme);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors