* Push notifications entry point * Process android notification natively only if RN is not initialized * Database changes to store local channel viewed_at * EphemeralStore wait until screen removed * Move schedule session notification to utility * Fix channel remote & local actions + added actions for markChannelAsViewed & fetchMyChannel * Add fetchMyTeam remote action * Add dismissAllModalsAndPopToScreen to navigation * Improve post list component & add app state to re-trigger queries * Improve WS implementation * Handle push notification events * Fix postsInChannel since handler * Handle in-app notifications * Post list to listen to column changes * Track selected bottom tab in ephemeral store * add useIsTablet hook * in-app notifications on tablets
32 lines
714 B
TypeScript
32 lines
714 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import React from 'react';
|
|
import {StyleSheet, Text} from 'react-native';
|
|
|
|
interface NotificationTitleProps {
|
|
channelName: string;
|
|
}
|
|
|
|
const Title = ({channelName}: NotificationTitleProps) => {
|
|
return (
|
|
<Text
|
|
numberOfLines={1}
|
|
ellipsizeMode='tail'
|
|
style={styles.title}
|
|
testID='in_app_notification.title'
|
|
>
|
|
{channelName}
|
|
</Text>
|
|
);
|
|
};
|
|
|
|
const styles = StyleSheet.create({
|
|
title: {
|
|
color: '#FFFFFF',
|
|
fontSize: 14,
|
|
fontFamily: 'OpenSans-SemiBold',
|
|
},
|
|
});
|
|
|
|
export default Title;
|