2021-09-13 20:41:05 +00:00
|
|
|
import { PixelRatio, StyleSheet } from 'react-native';
|
2019-04-18 20:57:35 +00:00
|
|
|
|
|
|
|
import sharedStyles from '../../views/Styles';
|
|
|
|
|
|
|
|
export const ROW_HEIGHT = 75 * PixelRatio.getFontScale();
|
2019-07-15 16:54:28 +00:00
|
|
|
export const ACTION_WIDTH = 80;
|
|
|
|
export const SMALL_SWIPE = ACTION_WIDTH / 2;
|
|
|
|
export const LONG_SWIPE = ACTION_WIDTH * 3;
|
2019-04-18 20:57:35 +00:00
|
|
|
|
2021-09-13 20:41:05 +00:00
|
|
|
export default StyleSheet.create<any>({
|
2020-07-31 17:06:22 +00:00
|
|
|
flex: {
|
|
|
|
flex: 1
|
|
|
|
},
|
2019-04-18 20:57:35 +00:00
|
|
|
container: {
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'center',
|
2019-07-01 14:20:38 +00:00
|
|
|
paddingLeft: 14,
|
2019-04-18 20:57:35 +00:00
|
|
|
height: ROW_HEIGHT
|
|
|
|
},
|
|
|
|
centerContainer: {
|
|
|
|
flex: 1,
|
|
|
|
paddingVertical: 10,
|
|
|
|
paddingRight: 14,
|
2019-12-04 16:39:53 +00:00
|
|
|
borderBottomWidth: StyleSheet.hairlineWidth
|
2019-04-18 20:57:35 +00:00
|
|
|
},
|
|
|
|
title: {
|
|
|
|
flex: 1,
|
|
|
|
fontSize: 17,
|
|
|
|
lineHeight: 20,
|
|
|
|
...sharedStyles.textMedium
|
|
|
|
},
|
|
|
|
alert: {
|
|
|
|
...sharedStyles.textSemibold
|
|
|
|
},
|
|
|
|
row: {
|
|
|
|
flex: 1,
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'flex-start'
|
|
|
|
},
|
|
|
|
titleContainer: {
|
|
|
|
width: '100%',
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center'
|
|
|
|
},
|
|
|
|
date: {
|
|
|
|
fontSize: 13,
|
|
|
|
marginLeft: 4,
|
|
|
|
...sharedStyles.textRegular
|
|
|
|
},
|
|
|
|
updateAlert: {
|
|
|
|
...sharedStyles.textSemibold
|
|
|
|
},
|
|
|
|
status: {
|
2021-03-31 17:47:17 +00:00
|
|
|
marginRight: 2
|
2019-04-18 20:57:35 +00:00
|
|
|
},
|
|
|
|
markdownText: {
|
|
|
|
flex: 1,
|
|
|
|
fontSize: 14,
|
|
|
|
lineHeight: 17,
|
2019-12-04 16:39:53 +00:00
|
|
|
...sharedStyles.textRegular
|
2019-04-18 20:57:35 +00:00
|
|
|
},
|
|
|
|
avatar: {
|
|
|
|
marginRight: 10
|
2019-07-01 14:20:38 +00:00
|
|
|
},
|
2019-07-15 16:54:28 +00:00
|
|
|
upperContainer: {
|
|
|
|
overflow: 'hidden'
|
|
|
|
},
|
|
|
|
actionsContainer: {
|
|
|
|
position: 'absolute',
|
|
|
|
left: 0,
|
|
|
|
right: 0,
|
|
|
|
height: ROW_HEIGHT
|
|
|
|
},
|
2019-07-01 14:20:38 +00:00
|
|
|
actionText: {
|
2019-07-04 16:15:30 +00:00
|
|
|
fontSize: 15,
|
|
|
|
justifyContent: 'center',
|
|
|
|
marginTop: 4,
|
|
|
|
...sharedStyles.textSemibold
|
2019-07-01 14:20:38 +00:00
|
|
|
},
|
2019-07-15 16:54:28 +00:00
|
|
|
actionLeftButtonContainer: {
|
|
|
|
position: 'absolute',
|
|
|
|
height: ROW_HEIGHT,
|
2019-07-01 14:20:38 +00:00
|
|
|
justifyContent: 'center',
|
2020-11-30 21:47:05 +00:00
|
|
|
top: 0,
|
|
|
|
right: 0
|
2019-07-01 14:20:38 +00:00
|
|
|
},
|
2019-07-15 16:54:28 +00:00
|
|
|
actionRightButtonContainer: {
|
|
|
|
position: 'absolute',
|
|
|
|
height: ROW_HEIGHT,
|
2019-07-01 14:20:38 +00:00
|
|
|
justifyContent: 'center',
|
2019-12-04 16:39:53 +00:00
|
|
|
top: 0
|
2019-07-01 14:20:38 +00:00
|
|
|
},
|
2019-07-15 16:54:28 +00:00
|
|
|
actionButton: {
|
|
|
|
width: ACTION_WIDTH,
|
|
|
|
height: '100%',
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center'
|
[NEW] Add/Create/Remove channel on a team (#3090)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* One way to refactor :P
* Next level refactor :)
* Fix create group dm
* Refactor renderItem
* Minor bug fixes
* Fix stories
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-05-19 21:14:42 +00:00
|
|
|
},
|
|
|
|
tagContainer: {
|
|
|
|
alignSelf: 'center',
|
|
|
|
alignItems: 'center',
|
|
|
|
borderRadius: 4,
|
|
|
|
marginHorizontal: 4
|
|
|
|
},
|
|
|
|
tagText: {
|
|
|
|
fontSize: 13,
|
|
|
|
paddingHorizontal: 4,
|
|
|
|
...sharedStyles.textSemibold
|
2019-04-18 20:57:35 +00:00
|
|
|
}
|
|
|
|
});
|