react-tags-html
Advanced tools
Comparing version 0.0.4 to 0.0.6
@@ -9,2 +9,4 @@ import React, { Component } from 'react'; | ||
const { children } = this.props; | ||
if(Platform.isNative) { | ||
@@ -11,0 +13,0 @@ return <View>{children}</View> |
@@ -9,2 +9,4 @@ import React, { Component } from 'react'; | ||
const { children } = this.props; | ||
if(Platform.isNative) { | ||
@@ -11,0 +13,0 @@ return <ReactButton>{children}</ReactButton> |
@@ -9,2 +9,4 @@ import React, { Component } from 'react'; | ||
const { children } = this.props; | ||
if(Platform.isNative) { | ||
@@ -11,0 +13,0 @@ return <View>{children}</View> |
@@ -1,1 +0,1 @@ | ||
export { default as Div } from './Div.js' | ||
export { default } from './Div.js' |
@@ -9,2 +9,4 @@ import React, { Component } from 'react'; | ||
const { children } = this.props; | ||
if(Platform.isNative) { | ||
@@ -11,0 +13,0 @@ switch(type){ |
@@ -9,7 +9,9 @@ import React, { Component } from 'react'; | ||
const { src } = this.props; | ||
if(Platform.isNative) { | ||
return <Image source={{src}}/> | ||
return <Image source={src}/> | ||
} | ||
else if(Platform.isWeb) { | ||
return <img src={{src}}/> | ||
return <img src={src}/> | ||
} | ||
@@ -16,0 +18,0 @@ |
export { default as Div } from './div'; | ||
export { default as Platform } from './platform'; | ||
//export { default as Span } from './span'; | ||
//export { default as p } from './p'; | ||
export { default as Span } from './span'; | ||
export { default as A } from './a'; | ||
export { default as Button } from './button'; | ||
export { default as H } from './h'; | ||
export { default as Img } from './img'; | ||
// ... add others + more |
@@ -9,2 +9,4 @@ import React, { Component } from 'react'; | ||
const { children } = this.props; | ||
if(Platform.isNative) { | ||
@@ -11,0 +13,0 @@ return <View>{children}</View> |
@@ -6,5 +6,7 @@ import React, { Component } from 'react'; | ||
class Ol extends Component { | ||
render () { | ||
const { children } = this.props; | ||
if(Platform.isNative) { | ||
@@ -21,2 +23,2 @@ return <View>{children}</View> | ||
export default Ol; | ||
export default Ol; |
@@ -6,5 +6,7 @@ import React, { Component } from 'react'; | ||
class P extends Component { | ||
render () { | ||
const { children } = this.props; | ||
if(Platform.isNative) { | ||
@@ -21,2 +23,2 @@ return <Text>{children}</Text> | ||
export default P; | ||
export default P; |
@@ -1,1 +0,1 @@ | ||
export { default as Platform } from './Platform.js' | ||
export { default } from './Platform.js' |
@@ -9,2 +9,4 @@ import React, { Component } from 'react'; | ||
const { children } = this.props; | ||
if(Platform.isNative) { | ||
@@ -11,0 +13,0 @@ return <View>{children}</View> |
@@ -10,2 +10,4 @@ import React, { Component } from 'react'; | ||
const { children } = this.props; | ||
if(Platform.isNative) { | ||
@@ -12,0 +14,0 @@ return <View>{children}</View> |
{ | ||
"name": "react-tags-html", | ||
"version": "0.0.4", | ||
"version": "0.0.6", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "private": false, |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
7018
28
254
0