@eohjsc/react-native-smart-city 0.7.46 → 0.7.48

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eohjsc/react-native-smart-city",
3
3
  "title": "React Native Smart Home",
4
- "version": "0.7.46",
4
+ "version": "0.7.48",
5
5
  "description": "TODO",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -131,7 +131,7 @@
131
131
  "pluralize": "^8.0.0",
132
132
  "postinstall": "^0.7.0",
133
133
  "precompiled-mqtt": "^4.3.14-beta",
134
- "pusher-js": "^8.4.0-rc2",
134
+ "pusher-js": "~8.4.3",
135
135
  "pusher-js-auth": "^4.0.1",
136
136
  "python-struct": "^1.1.3",
137
137
  "querystring": "^0.2.0",
@@ -116,9 +116,10 @@ const styles = StyleSheet.create({
116
116
  paddingHorizontal: 16,
117
117
  position: 'absolute',
118
118
  bottom: 0,
119
+ backgroundColor: Colors.White,
119
120
  },
120
121
  button: {
121
- paddingBottom: 10,
122
+ height: 48,
122
123
  width: '100%',
123
124
  flex: 1,
124
125
  justifyContent: 'center',
@@ -1,5 +1,6 @@
1
1
  import React, { useCallback, useEffect, useMemo, useState } from 'react';
2
2
  import { ScrollView, TouchableOpacity, View } from 'react-native';
3
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
3
4
  import { useNavigation } from '@react-navigation/native';
4
5
 
5
6
  import { useTranslations } from '../../hooks/Common/useTranslations';
@@ -81,6 +82,7 @@ const SelectDeviceType = ({ route }) => {
81
82
  const [addType, setAddType] = useState();
82
83
  const [selectedAddType, setSelectedAddType] = useState();
83
84
  const permissions = useBackendPermission();
85
+ const insets = useSafeAreaInsets();
84
86
 
85
87
  const listDeviceType = useMemo(() => {
86
88
  const list = [
@@ -221,7 +223,9 @@ const SelectDeviceType = ({ route }) => {
221
223
  return (
222
224
  <View style={styles.container}>
223
225
  <HeaderCustom title={t('choose_type_of_device')} isShowSeparator />
224
- <ScrollView style={styles.contentContainer}>
226
+ <ScrollView
227
+ style={{ ...styles.contentContainer, marginBottom: insets.bottom + 48 }}
228
+ >
225
229
  <SelectDeviceGrid options={listDeviceType} onSelect={handleOnSelect} />
226
230
  </ScrollView>
227
231
  <ViewButtonBottom
@@ -10,7 +10,6 @@ export default StyleSheet.create({
10
10
  },
11
11
  contentContainer: {
12
12
  paddingTop: 16,
13
- marginBottom: 48,
14
13
  },
15
14
  gridContainer: {
16
15
  flexDirection: 'row',
@@ -48,6 +48,6 @@ export default StyleSheet.create({
48
48
  fontSize: 14,
49
49
  },
50
50
  wrapViewButtonStyle: {
51
- paddingTop: 48,
51
+ paddingTop: 42,
52
52
  },
53
53
  });