feat(rn,conference) show invite button on the top navbar

This commit is contained in:
Saúl Ibarra Corretgé 2021-09-14 12:49:23 +02:00 committed by Saúl Ibarra Corretgé
parent 3bf9c41f08
commit 0833f8c867
2 changed files with 30 additions and 6 deletions

View File

@ -6,6 +6,7 @@ import { Text, View } from 'react-native';
import { getConferenceName } from '../../../base/conference';
import { getFeatureFlag, CONFERENCE_TIMER_ENABLED, MEETING_NAME_ENABLED } from '../../../base/flags';
import { connect } from '../../../base/redux';
import InviteButton from '../../../invite/components/add-people-dialog/native/InviteButton';
import { PictureInPictureButton } from '../../../mobile/picture-in-picture';
import { isToolboxVisible } from '../../../toolbox/functions.native';
import ConferenceTimer from '../ConferenceTimer';
@ -54,8 +55,7 @@ const NavigationBar = (props: Props) => {
pointerEvents = 'box-none'
style = { styles.navBarWrapper }>
<View style = { styles.pipButtonContainer }>
<PictureInPictureButton
styles = { styles.pipButton } />
<PictureInPictureButton styles = { styles.pipButton } />
</View>
<View
pointerEvents = 'box-none'
@ -78,6 +78,9 @@ const NavigationBar = (props: Props) => {
}
<Labels />
</View>
<View style = { styles.inviteButtonContainer }>
<InviteButton styles = { styles.inviteButton } />
</View>
</View>
);
};

View File

@ -3,6 +3,8 @@ import { BoxModel, ColorPalette, fixAndroidViewClipping } from '../../../base/st
export const INSECURE_ROOM_NAME_LABEL_COLOR = ColorPalette.warning;
const NAVBAR_BUTTON_SIZE = 24;
/**
* The styles of the feature conference.
*/
@ -29,6 +31,22 @@ export default {
flexDirection: 'row'
},
inviteButtonContainer: {
paddingHorizontal: 10,
paddingVertical: 10,
position: 'absolute',
top: 0,
right: 0,
zIndex: 1
},
inviteButton: {
iconStyle: {
color: ColorPalette.white,
fontSize: NAVBAR_BUTTON_SIZE
},
underlayColor: 'transparent'
},
lonelyButton: {
alignItems: 'center',
@ -54,16 +72,18 @@ export default {
},
pipButtonContainer: {
paddingHorizontal: 10,
paddingVertical: 10,
position: 'absolute',
top: 10,
left: 5,
top: 0,
left: 0,
zIndex: 1
},
pipButton: {
iconStyle: {
color: ColorPalette.white,
fontSize: 24
fontSize: NAVBAR_BUTTON_SIZE
},
underlayColor: 'transparent'
},
@ -117,7 +137,8 @@ export default {
},
roomNameWrapper: {
flexDirection: 'row'
flexDirection: 'row',
marginHorizontal: 35
},
/**