From d3dce675df1bf4bd92678ffc8fbb7b8497f45b86 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Tue, 1 Sep 2015 14:43:05 -0700 Subject: [PATCH] Reduce size of API; remove helpers --- README.md | 34 ---------------------------------- example/example.js | 10 +--------- example/index.html | 1 - src/index.js | 8 +------- 4 files changed, 2 insertions(+), 51 deletions(-) diff --git a/README.md b/README.md index d71ad962..4aa2b91c 100644 --- a/README.md +++ b/README.md @@ -112,40 +112,6 @@ const buttonStyle = { } ``` -The styling strategy can be applied directly to non-SDK elements: - -```js -import { stylingStrategy } from 'react-web-sdk'; - -class Example extends React.Component { - render() { - return ( -
- ); - } -} -``` - - -## Utilities - -#### `getOtherProps(reactComponentInstance)` - -Returns an object containing all the props from `this.props` that are not -defined in `propTypes`. - -#### `omitProps(obj, arrayOfExcludedProps)` - -Returns an object with the specified props excluded. - -#### `pickProps(obj, arrayOfIncludedProps)` - -Returns an object with the specified props included. - ## Development ``` diff --git a/example/example.js b/example/example.js index 3f8dc15d..5ffc5d3c 100644 --- a/example/example.js +++ b/example/example.js @@ -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 ( -
{[1,2,3,4,5,6].map((item, i) => { return ( diff --git a/example/index.html b/example/index.html index 346e05b0..035dcf31 100644 --- a/example/index.html +++ b/example/index.html @@ -1,6 +1,5 @@ -
diff --git a/src/index.js b/src/index.js index 20504cdf..91f2e08b 100644 --- a/src/index.js +++ b/src/index.js @@ -1,20 +1,14 @@ import React from 'react'; -import { omitProps, pickProps } from './modules/filterObjectProps'; +// components import Image from './modules/Image'; import Text from './modules/Text'; import TextInput from './modules/TextInput'; import View from './modules/View'; -import { restyle } from './modules/react-native-web-style'; export default React; export { - // helpers - omitProps, - pickProps, - restyle, - // components Image, Text, TextInput,