* Started with bottom tabs layout * code clean up * Added animation to bottom tab bar * returns null if not focused * code clean up * Updating layout * Updated modal screen * Updated animation * Updated animation * Fix SafeArea on Home * A few clean ups * code clean up * Fix issue with navigation on Android * Use React Navigation in combination of RNN & create bottom tab bar * Set tab bar line separator height to 0.5 * Fix snapshot tests * Add home tab mention badge * Apply new themes * Home Tab badge * Remove unused constants Co-authored-by: Avinash Lingaloo <> Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
29 lines
832 B
TypeScript
29 lines
832 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import React from 'react';
|
|
import {render} from '@testing-library/react-native';
|
|
|
|
import {Preferences} from '@constants';
|
|
|
|
import ErrorText from './index';
|
|
|
|
describe('ErrorText', () => {
|
|
const baseProps = {
|
|
testID: 'error.text',
|
|
textStyle: {
|
|
fontSize: 14,
|
|
marginHorizontal: 15,
|
|
},
|
|
theme: Preferences.THEMES.denim,
|
|
error: 'Username must begin with a letter and contain between 3 and 22 characters including numbers, lowercase letters, and the symbols',
|
|
};
|
|
|
|
test('should match snapshot', () => {
|
|
const wrapper = render(
|
|
<ErrorText {...baseProps}/>,
|
|
);
|
|
|
|
expect(wrapper.toJSON()).toMatchSnapshot();
|
|
});
|
|
});
|