MM-18658 Edit Channel MaxLength (#3317)

Set MaxLength on Edit Channel Name.
Updated ViewTypes MaxLength from 22 to 64 for validation/errors.
This commit is contained in:
CJ 2019-09-25 09:53:52 -04:00 committed by Elias Nahum
parent 114a18c16d
commit 67ae09f868
3 changed files with 3 additions and 1 deletions

View file

@ -73,6 +73,7 @@ exports[`EditChannelInfo should match snapshot 1`] = `
autoCorrect={false}
disableFullscreenUI={true}
keyboardAppearance="light"
maxLength={64}
onChangeText={[Function]}
placeholder={
Object {

View file

@ -234,6 +234,7 @@ export default class EditChannelInfo extends PureComponent {
placeholderTextColor={changeOpacity(theme.centerChannelColor, 0.5)}
underlineColorAndroid='transparent'
disableFullscreenUI={true}
maxLength={64}
keyboardAppearance={getKeyboardAppearanceFromTheme(theme)}
/>
</View>

View file

@ -104,7 +104,7 @@ export default {
EMBED_PREVIEW: 'embed_preview',
LINK_PREVIEW_DISPLAY: 'link_previews',
MIN_CHANNELNAME_LENGTH: 2,
MAX_CHANNELNAME_LENGTH: 22,
MAX_CHANNELNAME_LENGTH: 64,
ANDROID_TOP_LANDSCAPE: 46,
ANDROID_TOP_PORTRAIT: 56,
IOS_TOP_LANDSCAPE: 40,