An open API service indexing awesome lists of open source software.

https://github.com/hesyifei/emotion-native-media-query

A proof of concept: Add responsive support for @emotion/native. It supports both React Native (Expo) and React Native Web (Expo for Web), as well as server-side rendering with frameworks such as Next.js.
https://github.com/hesyifei/emotion-native-media-query

emotion expo expo-web nextjs

Last synced: 2 months ago
JSON representation

A proof of concept: Add responsive support for @emotion/native. It supports both React Native (Expo) and React Native Web (Expo for Web), as well as server-side rendering with frameworks such as Next.js.

Awesome Lists containing this project

README

        

# emotion-native-media-query

> Add responsive support for [@emotion/native](https://emotion.sh/docs/@emotion/native). It supports both React Native (Expo) and React Native Web (Expo for Web), as well as server-side rendering with frameworks such as Next.js.

[![NPM](https://img.shields.io/npm/v/emotion-native-media-query.svg)](https://www.npmjs.com/package/emotion-native-media-query)
[![Build Status](https://travis-ci.com/hesyifei/emotion-native-media-query.svg?branch=master)](https://travis-ci.com/hesyifei/emotion-native-media-query)

## Install

```bash
npm install --save emotion-native-media-query
```

## Usage

```tsx
import * as React from "react";
import RView, { MediaRule } from "emotion-native-media-query";

class Example extends React.Component {
render() {
return (

);
}
}
```

For more, read the [API Reference for `RView`](./docs/RView.md).

## License

MIT © [hesyifei](https://github.com/hesyifei)