Skip to content

Commit 8e5a3fb

Browse files
authored
Typescript/keyboard (#1488)
* Revert "Revert "Typescript/keyboard (#1449)" (#1476)" This reverts commit 2e59194. * Fix TS issues leftover in Keyboard components * Rearrange generated types
1 parent 1c55c21 commit 8e5a3fb

File tree

236 files changed

+985
-821
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+985
-821
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,3 @@ class MyScreen extends Component {
118118
}
119119
}
120120
```
121-

demo/src/screens/nativeComponentScreens/SafeAreaSpacerViewScreen.js renamed to demo/src/screens/nativeComponentScreens/SafeAreaSpacerViewScreen.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import React, {PureComponent} from 'react';
22
import {ScrollView, StyleSheet} from 'react-native';
3-
import {Text, View, SafeAreaSpacerView} from 'react-native-ui-lib'; //eslint-disable-line
3+
import {Text, View, SafeAreaSpacerView} from 'react-native-ui-lib';
44

55
export default class SafeAreaSpacerViewScreen extends PureComponent {
6-
76
static options() {
87
return {
98
topBar: {
109
drawBehind: true,
11-
visible: false,
12-
},
10+
visible: false
11+
}
1312
};
1413
}
1514

@@ -19,7 +18,7 @@ export default class SafeAreaSpacerViewScreen extends PureComponent {
1918
<ScrollView contentContainerStyle={styles.scrollView}>
2019
<View paddingH-25 center>
2120
<Text text50 center>
22-
{'When there are absolute-positioned view at the bottom and top,' +
21+
{'When there are absolute-positioned view at the bottom and top,' +
2322
'it is sometimes hard or impossible to change the layout and avoid it.'}
2423
<Text red50> SafeAreaSpacerView </Text>
2524
{'can be used as a BOTTOM or TOP spacer and will get the height of the safe area insets'}
@@ -43,16 +42,16 @@ const styles = StyleSheet.create({
4342
scrollView: {
4443
flex: 1,
4544
alignItems: 'center',
46-
justifyContent: 'center',
45+
justifyContent: 'center'
4746
},
4847
topView: {
4948
position: 'absolute',
5049
top: 0,
51-
left: 0,
50+
left: 0
5251
},
5352
bottomView: {
5453
position: 'absolute',
5554
bottom: 0,
56-
left: 0,
57-
},
55+
left: 0
56+
}
5857
});

generatedTypes/components/button/type.d.ts

Lines changed: 0 additions & 112 deletions
This file was deleted.

generatedTypes/components/expandableListItem/index.d.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

generatedTypes/components/radioButton/RadioButton.d.ts

Lines changed: 0 additions & 123 deletions
This file was deleted.

generatedTypes/components/radioButton/RadioGroup.d.ts

Lines changed: 0 additions & 50 deletions
This file was deleted.

generatedTypes/components/radioGroup/RadioGroupContext.d.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

generatedTypes/components/radioGroup/asRadioGroupChild.d.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)