Browse Source

Fixed crash on about screen

Arnaud Vergnet 3 years ago
parent
commit
13b9e8dad0
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      src/screens/About/AboutScreen.js

+ 2
- 3
src/screens/About/AboutScreen.js View File

@@ -3,7 +3,6 @@
3 3
 import * as React from 'react';
4 4
 import {FlatList, Linking, Platform, View} from 'react-native';
5 5
 import i18n from "i18n-js";
6
-import appJson from '../../../app';
7 6
 import AsyncStorageManager from "../../managers/AsyncStorageManager";
8 7
 import {Avatar, Card, List, Title, withTheme} from 'react-native-paper';
9 8
 
@@ -224,8 +223,8 @@ class AboutScreen extends React.Component<Props, State> {
224 223
         return (
225 224
             <Card style={{marginBottom: 10}}>
226 225
                 <Card.Title
227
-                    title={appJson.expo.name}
228
-                    subtitle={appJson.expo.version}
226
+                    title={"Campus"}
227
+                    subtitle={"2.0.0"}
229 228
                     left={this.getAppIcon}/>
230 229
                 <Card.Content>
231 230
                     <FlatList

Loading…
Cancel
Save