@rownd/react-native 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/DarkText.js +5 -1
- package/lib/commonjs/components/DarkText.js.map +1 -1
- package/lib/module/components/DarkText.js +5 -1
- package/lib/module/components/DarkText.js.map +1 -1
- package/lib/package.json +2 -2
- package/package.json +2 -2
- package/src/components/DarkText.tsx +3 -1
|
@@ -21,7 +21,11 @@ function DarkText(_ref) {
|
|
|
21
21
|
} = _ref;
|
|
22
22
|
|
|
23
23
|
if (style) {
|
|
24
|
-
style.color = '#
|
|
24
|
+
style.color = '#000000';
|
|
25
|
+
} else {
|
|
26
|
+
style = {
|
|
27
|
+
color: '#000000'
|
|
28
|
+
};
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
return /*#__PURE__*/_react.default.createElement(_reactNative.Text, _extends({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DarkText","style","children","rest","color"],"sources":["DarkText.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, TextProps, TextStyle } from 'react-native';\n\nexport default function DarkText({ style, children, ...rest }: TextProps) {\n if (style) {\n (style as TextStyle).color = '#
|
|
1
|
+
{"version":3,"names":["DarkText","style","children","rest","color"],"sources":["DarkText.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, TextProps, TextStyle } from 'react-native';\n\nexport default function DarkText({ style, children, ...rest }: TextProps) {\n if (style) {\n (style as TextStyle).color = '#000000';\n } else {\n style = { color: '#000000' };\n }\n\n return (\n <Text style={style} {...rest}>\n {children}\n </Text>\n );\n}\n"],"mappings":";;;;;;;AAAA;;AACA;;;;;;AAEe,SAASA,QAAT,OAA2D;EAAA,IAAzC;IAAEC,KAAF;IAASC,QAAT;IAAmB,GAAGC;EAAtB,CAAyC;;EACxE,IAAIF,KAAJ,EAAW;IACRA,KAAD,CAAqBG,KAArB,GAA6B,SAA7B;EACD,CAFD,MAEO;IACLH,KAAK,GAAG;MAAEG,KAAK,EAAE;IAAT,CAAR;EACD;;EAED,oBACE,6BAAC,iBAAD;IAAM,KAAK,EAAEH;EAAb,GAAwBE,IAAxB,GACGD,QADH,CADF;AAKD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Text","DarkText","style","children","rest","color"],"sources":["DarkText.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, TextProps, TextStyle } from 'react-native';\n\nexport default function DarkText({ style, children, ...rest }: TextProps) {\n if (style) {\n (style as TextStyle).color = '#
|
|
1
|
+
{"version":3,"names":["React","Text","DarkText","style","children","rest","color"],"sources":["DarkText.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, TextProps, TextStyle } from 'react-native';\n\nexport default function DarkText({ style, children, ...rest }: TextProps) {\n if (style) {\n (style as TextStyle).color = '#000000';\n } else {\n style = { color: '#000000' };\n }\n\n return (\n <Text style={style} {...rest}>\n {children}\n </Text>\n );\n}\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAA2C,cAA3C;AAEA,eAAe,SAASC,QAAT,OAA2D;EAAA,IAAzC;IAAEC,KAAF;IAASC,QAAT;IAAmB,GAAGC;EAAtB,CAAyC;;EACxE,IAAIF,KAAJ,EAAW;IACRA,KAAD,CAAqBG,KAArB,GAA6B,SAA7B;EACD,CAFD,MAEO;IACLH,KAAK,GAAG;MAAEG,KAAK,EAAE;IAAT,CAAR;EACD;;EAED,oBACE,oBAAC,IAAD;IAAM,KAAK,EAAEH;EAAb,GAAwBE,IAAxB,GACGD,QADH,CADF;AAKD"}
|
package/lib/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rownd/react-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Rownd bindings for React Native",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "lib/commonjs/index",
|
|
7
7
|
"module": "lib/module/index",
|
|
8
|
-
"types": "lib/typescript/index.d.ts",
|
|
8
|
+
"types": "lib/typescript/src/index.d.ts",
|
|
9
9
|
"react-native": "src/index",
|
|
10
10
|
"source": "src/index",
|
|
11
11
|
"files": [
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rownd/react-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Rownd bindings for React Native",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "lib/commonjs/index",
|
|
7
7
|
"module": "lib/module/index",
|
|
8
|
-
"types": "lib/typescript/index.d.ts",
|
|
8
|
+
"types": "lib/typescript/src/index.d.ts",
|
|
9
9
|
"react-native": "src/index",
|
|
10
10
|
"source": "src/index",
|
|
11
11
|
"files": [
|
|
@@ -3,7 +3,9 @@ import { Text, TextProps, TextStyle } from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
export default function DarkText({ style, children, ...rest }: TextProps) {
|
|
5
5
|
if (style) {
|
|
6
|
-
(style as TextStyle).color = '#
|
|
6
|
+
(style as TextStyle).color = '#000000';
|
|
7
|
+
} else {
|
|
8
|
+
style = { color: '#000000' };
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
return (
|