From 8c493804f3f7b3ae3761679a978971ab9d71baa0 Mon Sep 17 00:00:00 2001 From: Emily Janzer Date: Fri, 14 Feb 2020 15:01:49 -0800 Subject: [PATCH] Fix TextInputTestCase Summary: https://github.com/facebook/react-native/pull/22166 removed inline styles from TextInputTestModule but applied the incorrect style to some of the TextInputs - instead of setting the text color, it set the margin. This caused the test to fail because no color was applied. Changelog: [Android] [Fixed] Fixed style in TextInputTestCase Reviewed By: zackargyle Differential Revision: D19912362 fbshipit-source-id: d5068114b726ee7583842e5f6f323862b0c28e44 --- ReactAndroid/src/androidTest/js/TextInputTestModule.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactAndroid/src/androidTest/js/TextInputTestModule.js b/ReactAndroid/src/androidTest/js/TextInputTestModule.js index 4d994fdf759..606d1ffd24f 100644 --- a/ReactAndroid/src/androidTest/js/TextInputTestModule.js +++ b/ReactAndroid/src/androidTest/js/TextInputTestModule.js @@ -170,7 +170,7 @@ const styles = StyleSheet.create({ fontWeight: 'bold', }, textInputColor: { - marginLeft: 20, + color: '#00ff00', }, });