Skip to content

Commit c1b0509

Browse files
authored
Merge pull request #3 from SoftMediaLab/placeholder_transform
lint fix
2 parents 55d427c + 375d1f7 commit c1b0509

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

datepicker.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class DatePicker extends Component {
6767
{
6868
toValue: height,
6969
duration: duration,
70-
useNativeDriver: true,
70+
useNativeDriver: true
7171
}
7272
).start();
7373
} else {
@@ -76,7 +76,7 @@ class DatePicker extends Component {
7676
{
7777
toValue: 0,
7878
duration: duration,
79-
useNativeDriver: true,
79+
useNativeDriver: true
8080
}
8181
).start(() => {
8282
this.setState({modalVisible: visible});
@@ -184,14 +184,14 @@ class DatePicker extends Component {
184184
);
185185
}
186186
return (
187-
<>
188-
<Text allowFontScaling={allowFontScaling} style={[customStyles.placeholderText, Style.placeholderDensedText]}>
189-
{placeholder}
190-
</Text>
191-
<Text allowFontScaling={allowFontScaling} style={[Style.dateText, customStyles.dateText]}>
192-
{this.getDateStr()}
193-
</Text>
194-
</>
187+
<React.Fragment>
188+
<Text allowFontScaling={allowFontScaling} style={[customStyles.placeholderText, Style.placeholderDensedText]}>
189+
{placeholder}
190+
</Text>
191+
<Text allowFontScaling={allowFontScaling} style={[Style.dateText, customStyles.dateText]}>
192+
{this.getDateStr()}
193+
</Text>
194+
</React.Fragment>
195195
);
196196
}
197197

style.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ let style = StyleSheet.create({
3333
placeholderDensedText: {
3434
position: 'absolute',
3535
transform: [
36-
{ translateY: -23 },
36+
{translateY: -23}
3737
],
38-
fontSize: 12,
38+
fontSize: 12
3939
},
4040
datePickerMask: {
4141
flex: 1,

0 commit comments

Comments
 (0)