# react-native-stylesheet-plus

> test

Latest version **0.3.0** (published 2022-09-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-stylesheet-plus
pnpm add react-native-stylesheet-plus
yarn add react-native-stylesheet-plus
bun add react-native-stylesheet-plus
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2022-09-06 |
| First published | 2022-09-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 80.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Ehsan sarshar |
| Maintainers | theehsansarshar |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/react-native-stylesheet-plus
- Repository: https://github.com/TheEhsanSarshar/react-native-stylesheet-plus
- Homepage: https://github.com/TheEhsanSarshar/react-native-stylesheet-plus#readme
- Issues: https://github.com/TheEhsanSarshar/react-native-stylesheet-plus/issues
- npm.io page: https://npm.io/package/react-native-stylesheet-plus

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.3.0 (latest) — 2022-09-06
- 0.2.2 — 2022-09-06
- 0.2.1 — 2022-09-06
- 0.2.0 — 2022-09-06

## README

# react-native-stylesheet-plus

#### An alternative to react native stylesheet

## Installation

```sh
npm install react-native-stylesheet-plus
```

## Usage

```js
import * as React from 'react';
import { View, Text } from 'react-native';
import { getStyleSheet } from 'react-native-stylesheet-plus';

// make only one global StyleSheetPlus
// but if you want different breakpoints for different pages
// you can create as many StyleSheetPlus objects as you want
export const StyleSheetPlus = getStyleSheet();
// const StyleSheetPlus = getStyleSheet({ tablet: 700, laptop: 1100, desktop: 1500 })

function App() {
  const { styles } = StyleSheetPlus.useStyles(rawStyles);
  return (
    <View style={styles.container}>
      <Text style={styles.text}>This is some random text!!</Text>
      <Text style={styles.text}>This is some random text!!</Text>
    </View>
  );
}

const rawStyles = StyleSheetPlus.createStyles({
  container: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
    flexDirection: ['column', 'row'],
  },
  text: {
    fontSize: [20, 25],
  },
});
```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---
_Source: https://npm.io/package/react-native-stylesheet-plus · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
