mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-03-27 01:34:17 +08:00
Reduce size of API; remove helpers
This commit is contained in:
@@ -1,17 +1,9 @@
|
||||
import React from 'react';
|
||||
import { Image, Text, TextInput, View, stylingStrategy } from '../dist/main';
|
||||
import React, { Image, Text, TextInput, View } from '../dist/react-native-web';
|
||||
|
||||
class Example extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<View>
|
||||
<div {...stylingStrategy({
|
||||
style: {
|
||||
backgroundColor: '#000',
|
||||
height: '10px',
|
||||
opacity: '0.5'
|
||||
}
|
||||
})} />
|
||||
<View style={styles.grid}>
|
||||
{[1,2,3,4,5,6].map((item, i) => {
|
||||
return (
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="../dist/react-web-sdk.css">
|
||||
<div id="react-root"></div>
|
||||
<script src="../dist/example.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user