Fix inline styles in ReactAndroid (#22166)

Summary:
Fix `react-native/no-inline-styles` eslint warning for ReactAndroid module.
Pull Request resolved: https://github.com/facebook/react-native/pull/22166

Differential Revision: D12946925

Pulled By: TheSavior

fbshipit-source-id: f4bc0653bd2971e551bc46d89455c006003947c7
This commit is contained in:
Ignacio Olaciregui
2018-11-06 13:45:34 -08:00
committed by Facebook Github Bot
parent 7dd2b0b5ea
commit 8b46c9a40b
5 changed files with 60 additions and 23 deletions
@@ -122,18 +122,18 @@ class TextInputTestApp extends React.Component {
/>
<TextInput
ref="textInput4"
style={[styles.textInput, {color: '#00ff00'}]}
style={[styles.textInput, styles.textInputColor]}
testID="textInput4"
/>
<TextInput
ref="textInput5"
style={[styles.textInput, {color: '#00ff00'}]}
style={[styles.textInput, styles.textInputColor]}
defaultValue=""
testID="textInput5"
/>
<TextInput
ref="textInput6"
style={[styles.textInput, {color: '#00ff00'}]}
style={[styles.textInput, styles.textInputColor]}
defaultValue="Text"
testID="textInput6"
/>
@@ -166,6 +166,9 @@ const styles = StyleSheet.create({
color: 'blue',
fontWeight: 'bold',
},
textInputColor: {
marginLeft: 20,
},
});
const TextInputTestModule = {