Browse Source

Fixed crash on about screen

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

Loading…
Cancel
Save