Barber App development in React Native.
Prototype
...
v 0.0.0
>_ npx react-native run-android
>_ npm install --save styled-components
>_ npm install styled-components --legacy-peer-deps
>_ npm install @react-navigation/native
>_ npm install react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view
index.js
Then add the next command:
import "react-native-gesture-handler";
>_ npm install @react-navigation/stack
>_ npm install @react-navigation/bottom-tabs
>_ npm install @react-native-community/async-storage
>_ npm install @react-native-community/geolocation
ADD TO AndroidManifest.xml
<uses-permission android:name="android.permision.ACCESS_FINE_LOCATION" />
>_ npm install react-native-permissions
>_ npm install react-native-swiper
>_ npm install react-native-svg
>_ npm install react-native-svg-transformer
ADD TO metro.config.js
const { getDefaultConfig } = require('metro-config');
module.exports = (async () => {
const {
resolver: { sourceExts, assetExts },
} = await getDefaultConfig();
return {
transformer: {
babelTransformerPath: require.resolve('react-native-svg-transformer'),
},
resolver: {
assetExts: assetExts.filter(ext => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg'],
},
};
})();
>_ npx react-native run-*device*