Skip to content

Commit 1687d1a

Browse files
Refactored inline style to address eslint warning. (#230)
1 parent ce12692 commit 1687d1a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

example/SliderExample.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class SliderExample extends React.Component<$FlowFixMeProps, $FlowFixMeState> {
3030
</Text>
3131
<Slider
3232
step={0.5}
33-
style={{width: 300, opacity: 1, height: 50, marginTop: 50}}
33+
style={styles.slider}
3434
{...this.props}
3535
onValueChange={value => this.setState({value: value})}
3636
/>
@@ -100,6 +100,12 @@ class SlidingCompleteExample extends React.Component<
100100
}
101101

102102
const styles = StyleSheet.create({
103+
slider: {
104+
width: 300,
105+
opacity: 1,
106+
height: 50,
107+
marginTop: 50,
108+
},
103109
text: {
104110
fontSize: 14,
105111
textAlign: 'center',

0 commit comments

Comments
 (0)