Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
Updaed to be compatable with react-native 0.25. Changed peer react-na…
Browse files Browse the repository at this point in the history
…tive to be peer-dependency as per #5
  • Loading branch information
Thomas101 committed May 6, 2016
1 parent 0068555 commit ff335a4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 24 deletions.
8 changes: 3 additions & 5 deletions HTML.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import React, {
Component,
View
} from 'react-native'
import React from 'react'
import { View } from 'react-native'
import shallowCompare from 'react-addons-shallow-compare'
import htmlparser2 from 'htmlparser2'
import HTMLElement from './HTMLElement'
import HTMLTextNode from './HTMLTextNode'
import HTMLRenderers from './HTMLRenderers'
import HTMLStyles from './HTMLStyles'

class HTML extends Component {
class HTML extends React.Component {
/* ****************************************************************************/
// Class
/* ****************************************************************************/
Expand Down
9 changes: 3 additions & 6 deletions HTMLElement.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import React, {
Component,
Text,
View
} from 'react-native'
import React from 'react'
import { Text, View } from 'react-native'
import shallowCompare from 'react-addons-shallow-compare'
import HTMLStyles from './HTMLStyles'

class HTMLElement extends Component {
class HTMLElement extends React.Component {
/* ****************************************************************************/
// Class
/* ****************************************************************************/
Expand Down
7 changes: 2 additions & 5 deletions HTMLRenderers.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import React, {
TouchableOpacity,
Text,
Image
} from 'react-native'
import React from 'react'
import { TouchableOpacity, Text, Image } from 'react-native'
import HTMLStyles from './HTMLStyles'

module.exports = {
Expand Down
8 changes: 3 additions & 5 deletions HTMLTextNode.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React, {
Component,
Text
} from 'react-native'
import React from 'react'
import { Text } from 'react-native'
import shallowCompare from 'react-addons-shallow-compare'
import { AllHtmlEntities } from 'html-entities'

Expand All @@ -23,7 +21,7 @@ const PRE_TAG_NAMES = [
'pre', 'code'
].reduce((acc, n) => { acc.add(n); return acc }, new Set())

class HTMLTextNode extends Component {
class HTMLTextNode extends React.Component {
/* ****************************************************************************/
// Class
/* ****************************************************************************/
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"react-native-component",
"html"
],
"version": "1.0.4",
"version": "1.0.5",
"scripts": {
"test": "standard"
},
Expand All @@ -19,11 +19,13 @@
"events": "^1.1.0",
"html-entities": "^1.2.0",
"htmlparser2": "^3.9.0",
"react": "^0.14.8",
"react-addons-shallow-compare": "^0.14.8",
"react-native": "*",
"stream": "0.0.2"
},
"peerDependencies": {
"react": ">=0.14.8",
"react-native": ">=0.24.0"
},
"standard": {
"parser": "babel-eslint"
},
Expand Down

0 comments on commit ff335a4

Please sign in to comment.