agora-appbuilder-core 4.0.25-beta-11 → 4.0.25-beta-13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -76,8 +76,8 @@ const DefaultConfig = {
|
|
|
76
76
|
CHAT_ORG_NAME: '',
|
|
77
77
|
CHAT_APP_NAME: '',
|
|
78
78
|
CHAT_URL: '',
|
|
79
|
-
CLI_VERSION: '3.0.25-beta-
|
|
80
|
-
CORE_VERSION: '4.0.25-beta-
|
|
79
|
+
CLI_VERSION: '3.0.25-beta-13',
|
|
80
|
+
CORE_VERSION: '4.0.25-beta-13',
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
module.exports = DefaultConfig;
|
|
@@ -18,6 +18,7 @@ import Spacer from '../../atoms/Spacer';
|
|
|
18
18
|
import Transcript from '../../subComponents/caption/Transcript';
|
|
19
19
|
import {ToolbarProvider} from '../../utils/useToolbar';
|
|
20
20
|
import {ActionSheetProvider} from '../../utils/useActionSheet';
|
|
21
|
+
import {useOrientation} from '../../utils/useOrientation';
|
|
21
22
|
|
|
22
23
|
const ActionSheet = props => {
|
|
23
24
|
const {snapPointsMinMax = [100, 400]} = props;
|
|
@@ -136,6 +137,10 @@ const ActionSheet = props => {
|
|
|
136
137
|
default:
|
|
137
138
|
}
|
|
138
139
|
};
|
|
140
|
+
const orientation = useOrientation();
|
|
141
|
+
if (orientation === 'LANDSCAPE') {
|
|
142
|
+
return <></>;
|
|
143
|
+
}
|
|
139
144
|
return (
|
|
140
145
|
<>
|
|
141
146
|
{showOverlay && (
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, {useState} from 'react';
|
|
2
2
|
import {View, Text, StyleSheet} from 'react-native';
|
|
3
3
|
import {useOrientation} from '../utils/useOrientation';
|
|
4
4
|
import ThemeConfig from '../theme';
|
|
5
5
|
import {isMobileUA} from '../utils/common';
|
|
6
|
+
import Popup from './../atoms/Popup';
|
|
6
7
|
|
|
7
8
|
export default function BlockUI() {
|
|
9
|
+
const [isBlockModalVisible, setBlockModalVisible] = useState(true);
|
|
8
10
|
const orientation = useOrientation();
|
|
9
11
|
if (!isMobileUA()) {
|
|
10
12
|
return <></>;
|
|
@@ -13,32 +15,44 @@ export default function BlockUI() {
|
|
|
13
15
|
return <></>;
|
|
14
16
|
}
|
|
15
17
|
return (
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
<Popup
|
|
19
|
+
cancelable={false}
|
|
20
|
+
modalVisible={isBlockModalVisible}
|
|
21
|
+
setModalVisible={setBlockModalVisible}
|
|
22
|
+
containerStyle={styles.blockui__wrapper}
|
|
23
|
+
contentContainerStyle={styles.blockui__body}
|
|
24
|
+
showCloseIcon={false}>
|
|
25
|
+
<View style={styles.blockui__wrapper}>
|
|
26
|
+
<View style={styles.blockui__body}>
|
|
27
|
+
<Text style={styles.blockui__content}>
|
|
28
|
+
Please change to portrait mode to further access our application.
|
|
29
|
+
</Text>
|
|
30
|
+
</View>
|
|
21
31
|
</View>
|
|
22
|
-
</
|
|
32
|
+
</Popup>
|
|
23
33
|
);
|
|
24
34
|
}
|
|
25
35
|
|
|
26
36
|
const styles = StyleSheet.create({
|
|
27
37
|
blockui__wrapper: {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
38
|
+
padding: 0,
|
|
39
|
+
// position: 'absolute',
|
|
40
|
+
// top: 0,
|
|
41
|
+
// left: 0,
|
|
42
|
+
// width: '100%',
|
|
43
|
+
// height: '100%',
|
|
44
|
+
// zIndex: 99999,
|
|
45
|
+
// backgroundColor: $config.CARD_LAYER_1_COLOR,
|
|
46
|
+
// color: '#fff',
|
|
36
47
|
},
|
|
37
48
|
blockui__body: {
|
|
38
49
|
display: 'flex',
|
|
39
50
|
alignItems: 'center',
|
|
40
51
|
justifyContent: 'center',
|
|
41
52
|
flex: 1,
|
|
53
|
+
width: '100%',
|
|
54
|
+
maxWidth: '100%',
|
|
55
|
+
borderRadius: 0,
|
|
42
56
|
},
|
|
43
57
|
blockui__content: {
|
|
44
58
|
fontSize: 16,
|
|
@@ -3,7 +3,8 @@ import {Dimensions} from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
const isPortrait = () => {
|
|
5
5
|
const dim = Dimensions.get('window');
|
|
6
|
-
|
|
6
|
+
// This 20 is added to adjust for keyboard autocomplete suggestion area height
|
|
7
|
+
return dim.height + 20 >= dim.width;
|
|
7
8
|
};
|
|
8
9
|
|
|
9
10
|
/**
|