Skip to content

Commit b5db7c1

Browse files
authored
Omit alignment props from passing forward to Text and TextInput components (#2540)
1 parent db666e2 commit b5db7c1

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/components/text/index.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,17 @@ class Text extends PureComponent<PropsTypes> {
105105
render() {
106106
const {
107107
// (!) extract flex prop to avoid passing them on Android
108+
// TODO: extract alignment (top, right, ...) props till we manage to exclude them from typings
108109
/* eslint-disable */
109110
flex,
111+
// @ts-ignore
112+
left,
113+
// @ts-ignore
114+
top,
115+
// @ts-ignore
116+
right,
117+
// @ts-ignore
118+
bottom,
110119
/* eslint-enable */
111120
modifiers,
112121
style,

src/incubator/TextField/Input.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,18 @@ const DEFAULT_INPUT_COLOR: ColorType = {
1515

1616
const Input = ({
1717
// (!) extract flex prop to avoid passing them on Android
18+
// TODO: extract alignment (top, right, ...) props till we manage to exclude them from typings
1819
/* eslint-disable */
1920
// @ts-ignore (does not exist on props)
2021
flex,
22+
// @ts-ignore
23+
left,
24+
// @ts-ignore
25+
top,
26+
// @ts-ignore
27+
right,
28+
// @ts-ignore
29+
bottom,
2130
/* eslint-enable */
2231
style,
2332
hint,

0 commit comments

Comments
 (0)