Skip to content

Commit 6dee84d

Browse files
authored
Revert "Handle borderColor styles of TextField in Android (#1961)" (#1974)
This reverts commit 3785841.
1 parent 726c6b9 commit 6dee84d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

demo/src/screens/incubatorScreens/IncubatorTextFieldScreen.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import _ from 'lodash';
22
import React, {Component} from 'react';
33
import {TextInput, StyleSheet, ScrollView, ActivityIndicator} from 'react-native';
4-
import {Assets, Colors, Spacings, Typography, View, Text, Button, Keyboard, Incubator, Constants} from 'react-native-ui-lib'; //eslint-disable-line
4+
import {Assets, Colors, Spacings, Typography, View, Text, Button, Keyboard, Incubator} from 'react-native-ui-lib'; //eslint-disable-line
55
const {TextField} = Incubator;
66
const {KeyboardAwareInsetsView} = Keyboard;
77

@@ -283,12 +283,12 @@ const styles = StyleSheet.create({
283283
container: {},
284284
withUnderline: {
285285
borderBottomWidth: 1,
286-
borderColor: Constants.isAndroid ? Colors.$outlineDisabledHeavy.toString() : Colors.$outlineDisabledHeavy,
286+
borderColor: Colors.$outlineDisabledHeavy,
287287
paddingBottom: 4
288288
},
289289
withFrame: {
290290
borderWidth: 1,
291-
borderColor: Constants.isAndroid ? Colors.$outlineDisabledHeavy.toString() : Colors.$outlineDisabledHeavy,
291+
borderColor: Colors.$outlineDisabledHeavy,
292292
padding: 4,
293293
borderRadius: 2
294294
}

src/incubator/TextField/presets/default.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {StyleSheet} from 'react-native';
2-
import {Constants} from '../../../commons/new';
32
import {Colors, Spacings, Typography} from '../../../style';
43

54
const colorByState = {
@@ -11,7 +10,7 @@ const colorByState = {
1110
const styles = StyleSheet.create({
1211
field: {
1312
borderBottomWidth: 1,
14-
borderBottomColor: Constants.isAndroid ? Colors.$outlineDisabled.toString() : Colors.$outlineDisabled,
13+
borderBottomColor: Colors.$outlineDisabled,
1514
paddingBottom: Spacings.s2
1615
},
1716
input: {

0 commit comments

Comments
 (0)