# gatsby-theme-react-native-web

> This theme adds support for building Gatsby sites using React Native components.

Latest version **1.0.4** (published 2019-11-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install gatsby-theme-react-native-web
pnpm add gatsby-theme-react-native-web
yarn add gatsby-theme-react-native-web
bun add gatsby-theme-react-native-web
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2019-11-10 |
| First published | 2019-10-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 2.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | @piducancore |
| Maintainers | piducancore |
| Keywords | gatsby, gatsby-theme, react, react-native, react-native-web |

## Links

- npm: https://www.npmjs.com/package/gatsby-theme-react-native-web
- Repository: https://github.com/piducancore/gatsby-theme-react-native-web
- Homepage: https://github.com/piducancore/gatsby-theme-react-native-web#readme
- Issues: https://github.com/piducancore/gatsby-theme-react-native-web/issues
- npm.io page: https://npm.io/package/gatsby-theme-react-native-web

## Dependencies (4)

- [react-native](https://npm.io/package/react-native.md) ^0.61.2
- [react-native-web](https://npm.io/package/react-native-web.md) ^0.11.7
- [babel-plugin-react-native-web](https://npm.io/package/babel-plugin-react-native-web.md) ^0.11.7
- [gatsby-plugin-react-native-web](https://npm.io/package/gatsby-plugin-react-native-web.md) ^2.0.0-beta.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2019-11-10
- 1.0.2 — 2019-11-02
- 1.0.1 — 2019-10-31
- 1.0.0 — 2019-10-31

## README

# gatsby-theme-react-native-web

This [theme](https://www.gatsbyjs.org/docs/themes/) adds support for building [Gatsby](https://www.gatsbyjs.org) sites using [React Native](https://github.com/facebook/react-native) components.

## Isn't there a plugin for this already?

Yes, there's one called [`gatsby-plugin-react-native-web`](https://github.com/slorber/gatsby-plugin-react-native-web).

This theme puts that plugin and [its dependencies](https://github.com/slorber/gatsby-plugin-react-native-web/issues/7#issuecomment-472763972) in a single package for _increased <s>lazyness</s> developer experience_:zap:.

## Install

Run the following in your Gatsby site's directory.

```shell
yarn add gatsby-theme-react-native-web
```

## Usage

Once installed, add the theme as a plugin in your `gatsby-config.js`.

```javascript
// gatsby-config.js
module.exports = {
  plugins: [`gatsby-theme-react-native-web`],
}
```

That's it, you can now start building your Gatsby site using React Native components like in the example below.

## Example

```javascript
// src/pages/index.js
import React from "react"
import { StyleSheet, Text, View } from "react-native"

const styles = StyleSheet.create({
  box: { padding: 10 },
  text: { fontWeight: "bold" },
})

export default () => (
  <View style={styles.box}>
    <Text style={styles.text}>Hello, world!</Text>
  </View>
)
```

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