GOWRI-SHANKAR07 / Thryft

Second-hand Items Marketplace (Seller)
MIT License
0 stars 0 forks source link

Code Review - Profile screen #4

Open snaveenkumardev opened 11 months ago

snaveenkumardev commented 11 months ago
  1. Avoid the separate import of the same target library/package. import { AntDesign, MaterialIcons } from '@expo/vector-icons'; import { Octicons } from '@expo/vector-icons'; import { Entypo } from '@expo/vector-icons'; import { Fontisto } from '@expo/vector-icons';
  2. Don't store the permission status in storage to use. Always check if permission is granted or not in every access of the camera. By using the checking permission method of the expo-camera- kindly refer to the method.
  3. If you use the arrow function in the callback function, Then Wrap the function in the useCallback() hook to use it.
  4. Always remember, That the console.log() statement is only for development purposes, Once it dev completed and it goes to testing or production, Remove the statement manually or you can use the plugin to remove the console.log statement automatically in production. kindly refer to it.
  5. Always try to reuse the one useState() hook for more than one case.
GOWRI-SHANKAR07 commented 11 months ago

Fixed all the issues.