Browse Source

Better formatting in the menu

Yohan Simard 4 years ago
parent
commit
9503c781ca
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      screens/SelfMenuScreen.js

+ 5
- 1
screens/SelfMenuScreen.js View File

156
                                 <Text style={{
156
                                 <Text style={{
157
                                     marginTop: 5,
157
                                     marginTop: 5,
158
                                     marginBottom: 5
158
                                     marginBottom: 5
159
-                                }}>{object.name.toLowerCase()}</Text>
159
+                                }}>{this.formatName(object.name)}</Text>
160
                                 : <View/>}
160
                                 : <View/>}
161
                         </View>)}
161
                         </View>)}
162
                 </CardItem>
162
                 </CardItem>
164
         );
164
         );
165
     }
165
     }
166
 
166
 
167
+    formatName(name: String) {
168
+        return name.charAt(0) + name.substr(1).toLowerCase();
169
+    }
170
+
167
 }
171
 }
168
 
172
 

Loading…
Cancel
Save