diff --git a/src/styles/styles.js b/src/styles/styles.js index db23694b1bc2..81e09a8424aa 100644 --- a/src/styles/styles.js +++ b/src/styles/styles.js @@ -12,6 +12,7 @@ import display from './utilities/display'; import overflow from './utilities/overflow'; import whiteSpace from './utilities/whiteSpace'; import wordBreak from './utilities/wordBreak'; +import textInputAlignSelf from './utilities/textInputAlignSelf'; const styles = { // Add all of our utility and helper styles @@ -663,7 +664,7 @@ const styles = { paddingHorizontal: 8, marginVertical: 5, paddingVertical: 0, - alignSelf: 'center', + ...textInputAlignSelf.center, textAlignVertical: 'center', }, 0), diff --git a/src/styles/utilities/textInputAlignSelf/index.js b/src/styles/utilities/textInputAlignSelf/index.js new file mode 100644 index 000000000000..100414a2572f --- /dev/null +++ b/src/styles/utilities/textInputAlignSelf/index.js @@ -0,0 +1,5 @@ +export default { + center: { + alignSelf: 'center', + }, +}; diff --git a/src/styles/utilities/textInputAlignSelf/index.native.js b/src/styles/utilities/textInputAlignSelf/index.native.js new file mode 100644 index 000000000000..e35e6fbb18d6 --- /dev/null +++ b/src/styles/utilities/textInputAlignSelf/index.native.js @@ -0,0 +1,3 @@ +export default { + center: {}, +};