diff --git a/__tests__/__snapshots__/Storyshots.test.js.snap b/__tests__/__snapshots__/Storyshots.test.js.snap
index 181619f41..fc2569dd2 100644
--- a/__tests__/__snapshots__/Storyshots.test.js.snap
+++ b/__tests__/__snapshots__/Storyshots.test.js.snap
@@ -71430,6 +71430,189 @@ Array [
]
`;
+exports[`Storyshots Text Input Short and Long Text 1`] = `
+
+
+
+ Short Text
+
+
+
+
+
+
+
+ Long Text
+
+
+
+
+
+
+`;
+
exports[`Storyshots Thread Messages.Item badge 1`] = `
diff --git a/app/containers/TextInput.js b/app/containers/TextInput.js
index eb119218f..9bb62de33 100644
--- a/app/containers/TextInput.js
+++ b/app/containers/TextInput.js
@@ -26,7 +26,7 @@ const styles = StyleSheet.create({
...sharedStyles.textRegular,
height: 48,
fontSize: 16,
- paddingHorizontal: 14,
+ padding: 14,
borderWidth: StyleSheet.hairlineWidth,
borderRadius: 2
},
diff --git a/app/containers/TextInput.stories.js b/app/containers/TextInput.stories.js
new file mode 100644
index 000000000..6c802cc30
--- /dev/null
+++ b/app/containers/TextInput.stories.js
@@ -0,0 +1,43 @@
+/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions, react/prop-types */
+import React from 'react';
+import { storiesOf } from '@storybook/react-native';
+
+import { View, StyleSheet } from 'react-native';
+import TextInput from './TextInput';
+
+const styles = StyleSheet.create({
+ paddingHorizontal: {
+ paddingHorizontal: 14
+ }
+});
+
+const stories = storiesOf('Text Input', module);
+
+const item = {
+ name: 'Rocket.Chat',
+ longText: 'https://open.rocket.chat/images/logo/android-chrome-512x512.png'
+};
+
+const theme = 'light';
+
+
+stories.add('Short and Long Text', () => (
+ <>
+
+
+
+
+
+ >
+));
+
diff --git a/app/presentation/TextInput.js b/app/presentation/TextInput.js
index 74e5de219..8034bac5a 100644
--- a/app/presentation/TextInput.js
+++ b/app/presentation/TextInput.js
@@ -8,7 +8,7 @@ const styles = StyleSheet.create({
input: {
...I18nManager.isRTL
? { textAlign: 'right' }
- : { textAlign: 'left' }
+ : { textAlign: 'auto' }
}
});
diff --git a/storybook/stories/index.js b/storybook/stories/index.js
index b695d49d6..9f9e596e7 100644
--- a/storybook/stories/index.js
+++ b/storybook/stories/index.js
@@ -15,6 +15,7 @@ import './Avatar';
import '../../app/containers/BackgroundContainer/index.stories.js';
import '../../app/containers/RoomHeader/RoomHeader.stories.js';
import '../../app/views/RoomView/LoadMore/LoadMore.stories';
+import '../../app/containers/TextInput.stories';
// Change here to see themed storybook
export const theme = 'light';