Browse Source

Fixed warnings and removed unnecessary dependencies

keplyx 4 years ago
parent
commit
de5beb4b86
3 changed files with 35 additions and 45 deletions
  1. 0
    5
      components/Sidebar.js
  2. 0
    4
      package.json
  3. 35
    36
      screens/Proximo/ProximoListScreen.js

+ 0
- 5
components/Sidebar.js View File

@@ -79,10 +79,6 @@ export default class SideBar extends React.Component<Props, State> {
79 79
     render() {
80 80
         return (
81 81
             <Container style={{backgroundColor: ThemeManager.getCurrentThemeVariables().sideMenuBgColor}}>
82
-                <Content
83
-                    bounces={false}
84
-                    style={{flex: 1, top: -1}}
85
-                >
86 82
                     <Image source={drawerCover} style={styles.drawerCover}/>
87 83
                     <FlatList
88 84
                         data={this.dataSet}
@@ -126,7 +122,6 @@ export default class SideBar extends React.Component<Props, State> {
126 122
                                 </Right>}
127 123
                             </ListItem>}
128 124
                     />
129
-                </Content>
130 125
             </Container>
131 126
         );
132 127
     }

+ 0
- 4
package.json View File

@@ -10,7 +10,6 @@
10 10
   "dependencies": {
11 11
     "@expo/vector-icons": "^10.0.0",
12 12
     "@react-native-community/status-bar": "^1.0.3",
13
-    "@shoutem/theme": "^0.11.3",
14 13
     "expo": "^36.0.0",
15 14
     "expo-font": "~8.0.0",
16 15
     "expo-linear-gradient": "~8.0.0",
@@ -27,11 +26,8 @@
27 26
     "react-native-calendars": "^1.212.0",
28 27
     "react-native-gesture-handler": "~1.5.0",
29 28
     "react-native-material-menu": "^0.6.7",
30
-    "react-native-modal": "^11.3.1",
31 29
     "react-native-modalize": "^1.3.6",
32
-    "react-native-paper": "^2.16.0",
33 30
     "react-native-platform-touchable": "^1.1.1",
34
-    "react-native-reanimated": "~1.4.0",
35 31
     "react-native-render-html": "^4.1.2",
36 32
     "react-native-side-menu": "^1.1.3",
37 33
     "react-native-status-bar-height": "^2.3.1",

+ 35
- 36
screens/Proximo/ProximoListScreen.js View File

@@ -311,43 +311,42 @@ export default class ProximoListScreen extends React.Component<Props, State> {
311 311
                     hasSearchField={true}
312 312
                     searchCallback={(text) => this.search(text)}
313 313
                     shouldFocusSearchBar={this.shouldFocusSearchBar}
314
-                    rightButton={this.getSortMenu()}/>
314
+                    rightButton={this.getSortMenu()}
315
+                />
315 316
 
316
-                <Content>
317
-                    <FlatList
318
-                        data={this.state.currentlyDisplayedData}
319
-                        extraData={this.state.currentlyDisplayedData}
320
-                        keyExtractor={(item) => item.name + item.code}
321
-                        style={{minHeight: 300, width: '100%'}}
322
-                        renderItem={({item}) =>
323
-                            <ListItem
324
-                                thumbnail
325
-                                onPress={() => {
326
-                                    this.showItemDetails(item);
327
-                                }}
328
-                            >
329
-                                <Left>
330
-                                    <Thumbnail square source={{uri: item.image}}/>
331
-                                </Left>
332
-                                <Body>
333
-                                    <Text style={{marginLeft: 20}}>
334
-                                        {item.name}
335
-                                    </Text>
336
-                                    <Text note style={{
337
-                                        marginLeft: 20,
338
-                                        color: this.getStockColor(parseInt(item.quantity))
339
-                                    }}>
340
-                                        {item.quantity + ' ' + i18n.t('proximoScreen.inStock')}
341
-                                    </Text>
342
-                                </Body>
343
-                                <Right>
344
-                                    <Text style={{fontWeight: "bold"}}>
345
-                                        {item.price}€
346
-                                    </Text>
347
-                                </Right>
348
-                            </ListItem>}
349
-                    />
350
-                </Content>
317
+                <FlatList
318
+                    data={this.state.currentlyDisplayedData}
319
+                    extraData={this.state.currentlyDisplayedData}
320
+                    keyExtractor={(item) => item.name + item.code}
321
+                    style={{minHeight: 300, width: '100%'}}
322
+                    renderItem={({item}) =>
323
+                        <ListItem
324
+                            thumbnail
325
+                            onPress={() => {
326
+                                this.showItemDetails(item);
327
+                            }}
328
+                        >
329
+                            <Left>
330
+                                <Thumbnail square source={{uri: item.image}}/>
331
+                            </Left>
332
+                            <Body>
333
+                                <Text style={{marginLeft: 20}}>
334
+                                    {item.name}
335
+                                </Text>
336
+                                <Text note style={{
337
+                                    marginLeft: 20,
338
+                                    color: this.getStockColor(parseInt(item.quantity))
339
+                                }}>
340
+                                    {item.quantity + ' ' + i18n.t('proximoScreen.inStock')}
341
+                                </Text>
342
+                            </Body>
343
+                            <Right>
344
+                                <Text style={{fontWeight: "bold"}}>
345
+                                    {item.price}€
346
+                                </Text>
347
+                            </Right>
348
+                        </ListItem>}
349
+                />
351 350
             </Container>
352 351
         );
353 352
     }

Loading…
Cancel
Save