Files
mattermost-mobile/app/components/tutorial_highlight/swipe_left.tsx
Elias Nahum 5b9492356b Gekidou MultiServers second part (#5963)
* Edit Server display name

* Lock iPhone to portrait and iPad to landscape

* Create actions for app global to store device token and multi server tutorial

* Add MutliServer tutorial on first use

* WebSocket reconnection priority

* have isRecordGlobalEqualToRaw to not check for value

* Return early on edit server if error is found

* Prepopulate server screen with last logged out server address and name

* Add CompassIcon to circleCI asset generation
2022-02-17 10:42:06 -03:00

63 lines
1.7 KiB
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {StyleProp, StyleSheet, Text, TextStyle, View, ViewStyle} from 'react-native';
import {useTheme} from '@context/theme';
import {makeStyleSheetFromTheme} from '@utils/theme';
import {typography} from '@utils/typography';
import HandSwipeLeft from './swipe_left_hand';
type Props = {
containerStyle?: StyleProp<ViewStyle>;
message: string;
style?: StyleProp<ViewStyle>;
textStyles?: StyleProp<TextStyle>;
}
const getStyleSheet = makeStyleSheetFromTheme((theme: Theme) => ({
container: {
...StyleSheet.absoluteFillObject,
alignItems: 'center',
justifyContent: 'center',
},
view: {
alignItems: 'center',
backgroundColor: theme.centerChannelBg,
borderRadius: 8,
height: 136,
padding: 16,
width: 247,
},
text: {
...typography('Heading', 200),
color: theme.centerChannelColor,
marginTop: 8,
paddingHorizontal: 12,
textAlign: 'center',
},
}));
const TutorialSwipeLeft = ({containerStyle, message, style, textStyles}: Props) => {
const theme = useTheme();
const styles = getStyleSheet(theme);
return (
<View
pointerEvents='none'
style={[styles.container, containerStyle]}
>
<View style={[styles.view, style]}>
<HandSwipeLeft fillColor={theme.centerChannelColor}/>
<Text style={[styles.text, textStyles]}>
{message}
</Text>
</View>
</View>
);
};
export default TutorialSwipeLeft;