You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

react-native-dialog+9.2.1.patch 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. diff --git a/node_modules/react-native-dialog/lib/Button.js b/node_modules/react-native-dialog/lib/Button.js
  2. index 19eeb22..b8a66f4 100644
  3. --- a/node_modules/react-native-dialog/lib/Button.js
  4. +++ b/node_modules/react-native-dialog/lib/Button.js
  5. @@ -50,7 +50,7 @@ const buildStyles = (isDark) => StyleSheet.create({
  6. backgroundColor: "transparent",
  7. },
  8. android: {
  9. - color: PlatformColor(`@android:color/${isDark ? "link_text_dark" : "link_text_dark_light"}`),
  10. + color: isDark ? '#BFC7C7C7' : '#BF727272',
  11. textAlign: "center",
  12. backgroundColor: "transparent",
  13. padding: 8,
  14. diff --git a/node_modules/react-native-dialog/lib/CodeInput.js b/node_modules/react-native-dialog/lib/CodeInput.js
  15. index eceae56..cc4339d 100644
  16. --- a/node_modules/react-native-dialog/lib/CodeInput.js
  17. +++ b/node_modules/react-native-dialog/lib/CodeInput.js
  18. @@ -97,7 +97,7 @@ const buildStyles = (isDark) => StyleSheet.create({
  19. color: PlatformColor("label"),
  20. },
  21. android: {
  22. - color: PlatformColor(`@android:color/${isDark ? "primary_text_dark" : "primary_text_light"}`),
  23. + color: isDark ? '#FAFAFA' : '#212121',
  24. fontSize: 20,
  25. },
  26. default: {},
  27. @@ -107,7 +107,7 @@ const buildStyles = (isDark) => StyleSheet.create({
  28. color: PlatformColor("label"),
  29. },
  30. android: {
  31. - color: PlatformColor(`@android:color/${isDark ? "primary_text_dark" : "primary_text_light"}`),
  32. + color: isDark ? '#FAFAFA' : '#212121',
  33. fontSize: 14,
  34. },
  35. default: {},
  36. diff --git a/node_modules/react-native-dialog/lib/Container.js b/node_modules/react-native-dialog/lib/Container.js
  37. index 69e3764..d7569fb 100644
  38. --- a/node_modules/react-native-dialog/lib/Container.js
  39. +++ b/node_modules/react-native-dialog/lib/Container.js
  40. @@ -82,7 +82,7 @@ DialogContainer.propTypes = {
  41. useNativeDriver: PropTypes.bool,
  42. children: PropTypes.node.isRequired,
  43. };
  44. -const buildStyles = () => StyleSheet.create({
  45. +const buildStyles = (isDark) => StyleSheet.create({
  46. centeredView: {
  47. marginTop: 22,
  48. },
  49. @@ -103,7 +103,7 @@ const buildStyles = () => StyleSheet.create({
  50. overflow: "hidden",
  51. },
  52. android: {
  53. - backgroundColor: PlatformColor("?attr/colorBackgroundFloating"),
  54. + backgroundColor: isDark ? '#212121' : '#FFFFFF',
  55. flexDirection: "column",
  56. borderRadius: 3,
  57. padding: 16,
  58. diff --git a/node_modules/react-native-dialog/lib/Description.js b/node_modules/react-native-dialog/lib/Description.js
  59. index 2da9ed3..248ac2f 100644
  60. --- a/node_modules/react-native-dialog/lib/Description.js
  61. +++ b/node_modules/react-native-dialog/lib/Description.js
  62. @@ -28,7 +28,7 @@ const buildStyles = (isDark) => StyleSheet.create({
  63. marginTop: 4,
  64. },
  65. android: {
  66. - color: PlatformColor(`@android:color/${isDark ? "secondary_text_dark" : "secondary_text_light"}`),
  67. + color: isDark ? '#C7C7C7' : '#727272',
  68. fontSize: 16,
  69. marginTop: 10,
  70. },
  71. diff --git a/node_modules/react-native-dialog/lib/Input.js b/node_modules/react-native-dialog/lib/Input.js
  72. index b33a1a0..063d7f8 100644
  73. --- a/node_modules/react-native-dialog/lib/Input.js
  74. +++ b/node_modules/react-native-dialog/lib/Input.js
  75. @@ -48,7 +48,7 @@ const buildStyles = (isDark) => StyleSheet.create({
  76. color: PlatformColor("label"),
  77. },
  78. android: {
  79. - color: PlatformColor(`@android:color/${isDark ? "primary_text_dark" : "primary_text_light"}`),
  80. + color: isDark ? '#FAFAFA' : '#212121',
  81. fontSize: 14,
  82. },
  83. default: {},
  84. @@ -58,7 +58,7 @@ const buildStyles = (isDark) => StyleSheet.create({
  85. color: PlatformColor("label"),
  86. },
  87. android: {
  88. - color: PlatformColor(`@android:color/${isDark ? "primary_text_dark" : "primary_text_light"}`),
  89. + color: isDark ? '#FAFAFA' : '#212121',
  90. marginLeft: -4,
  91. paddingLeft: 4,
  92. },
  93. diff --git a/node_modules/react-native-dialog/lib/Switch.js b/node_modules/react-native-dialog/lib/Switch.js
  94. index 26a05ca..05114fa 100644
  95. --- a/node_modules/react-native-dialog/lib/Switch.js
  96. +++ b/node_modules/react-native-dialog/lib/Switch.js
  97. @@ -52,7 +52,7 @@ const buildStyles = (isDark) => StyleSheet.create({
  98. flex: 1,
  99. paddingRight: 8,
  100. fontSize: 16,
  101. - color: PlatformColor(`@android:color/${isDark ? "primary_text_dark" : "primary_text_light"}`),
  102. + color: isDark ? '#FAFAFA' : '#212121',
  103. },
  104. default: {},
  105. }),
  106. diff --git a/node_modules/react-native-dialog/lib/Title.js b/node_modules/react-native-dialog/lib/Title.js
  107. index 1c6fd87..b5511cc 100644
  108. --- a/node_modules/react-native-dialog/lib/Title.js
  109. +++ b/node_modules/react-native-dialog/lib/Title.js
  110. @@ -28,7 +28,7 @@ const buildStyles = (isDark) => StyleSheet.create({
  111. fontWeight: "600",
  112. },
  113. android: {
  114. - color: PlatformColor(`@android:color/${isDark ? "primary_text_dark" : "primary_text_light"}`),
  115. + color: isDark ? '#FAFAFA' : '#212121',
  116. fontWeight: "500",
  117. fontSize: 18,
  118. },