react-native-syntax-highlighter
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -50,2 +50,4 @@ 'use strict'; | ||
newStyle.backgroundColor = value; | ||
} else if (key === 'display') { | ||
return newStyle; | ||
} else { | ||
@@ -52,0 +54,0 @@ newStyle[key] = value; |
{ | ||
"name": "react-native-syntax-highlighter", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "a react native component for syntax highlighting", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -8,2 +8,4 @@ ## React Native Syntax Highlighter | ||
You can try it out with <a href='https://expo.io'>Expo</a> <a href='https://expo.io/@conor/test-native-syntax'>here</a> | ||
### Install | ||
@@ -10,0 +12,0 @@ |
@@ -20,2 +20,5 @@ import React from 'react'; | ||
} | ||
else if (key === 'display') { | ||
return newStyle; | ||
} | ||
else { | ||
@@ -48,4 +51,4 @@ newStyle[key] = value; | ||
return ( | ||
<Text | ||
key={key} | ||
<Text | ||
key={key} | ||
style={Object.assign({ color: defaultColor }, startingStyle)} | ||
@@ -61,4 +64,4 @@ > | ||
Object.assign( | ||
{ color: defaultColor }, | ||
properties.style, | ||
{ color: defaultColor }, | ||
properties.style, | ||
startingStyle | ||
@@ -96,4 +99,4 @@ ), | ||
horizontal={true} | ||
renderer={(nativeRenderer({ | ||
defaultColor, | ||
renderer={(nativeRenderer({ | ||
defaultColor, | ||
fontFamily, | ||
@@ -100,0 +103,0 @@ fontSize |
2795660
250
30