Nicolas Gallagher 092d5d12f7 [fix] unitless values for vendor prefixed properties
Problem:

Numeric values are suffixed with 'px', unless the property supports
unitless values. However, vendor prefixed properties were ignored
resulting in invalid CSS values for properties like
'-webkit-flex-shrink'.

Solution:

Apply the upstream solution from React, which includes vendor prefixed
properties in the "unitless number" map. Also build a custom vendor
prefixer to ensure adequate browser support (i.e., Safari 7 and older
Chrome).
2017-07-26 15:51:46 -07:00
2017-07-22 10:45:04 -07:00
2017-07-22 10:45:04 -07:00
2017-07-22 10:47:40 -07:00
2017-06-09 11:56:14 -07:00
2017-05-25 23:10:37 -07:00
2017-05-24 15:21:25 -07:00
2016-02-16 23:43:41 -08:00
2017-07-22 10:43:25 -07:00
2017-05-24 15:21:25 -07:00

React Native for Web

Build Status npm version

React Native components and APIs for the Web.

Browser support: Chrome, Firefox, Safari >= 7, IE 10, Edge.

Overview

"React Native for Web" is a project to bring React Native's building blocks and touch handling to the Web.

Browse the UI Explorer to see React Native examples running on Web. Or remix the React Native for Web: Playground on Glitch.

Quick start

To install in your app:

npm install --save react@15.6 react-dom@15.6 react-native-web

NOTE: React Native for Web supports React/ReactDOM 15.4, 15.5, or 15.6.

Then read the Getting Started guide.

Documentation

The UI Explorer interactively documents all the APIs and Components.

Guides:

Example code

import React from 'react'
import { AppRegistry, Image, StyleSheet, Text, View } from 'react-native'

// Components
const Card = ({ children }) => <View style={styles.card}>{children}</View>
const Title = ({ children }) => <Text style={styles.title}>{children}</Text>
const Photo = ({ uri }) => <Image source={{ uri }} style={styles.image} />
const App = () => (
  <Card>
    <Title>App Card</Title>
    <Photo uri="/some-photo.jpg" />
  </Card>
)

// Styles
const styles = StyleSheet.create({
  card: {
    flexGrow: 1,
    justifyContent: 'center'
  },
  title: {
    fontSize: '1.25rem',
    fontWeight: 'bold'
  },
  image: {
    height: 40,
    marginVertical: 10,
    width: 40
  }
})

// App registration and rendering
AppRegistry.registerComponent('MyApp', () => App)
AppRegistry.runApplication('MyApp', { rootTag: document.getElementById('react-root') })

Start kits

License

React Native for Web is BSD licensed.

Description
No description provided
Readme MIT 24 MiB
Languages
JavaScript 99.7%
HTML 0.2%