mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook Github Bot
parent
7dd2b0b5ea
commit
8b46c9a40b
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user