This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Removing containers :" && if [ -n "$(docker container ls -aq)" ]; then docker container stop $(docker container ls -aq); docker container rm $(docker container ls -aq); fi; echo "Removing images :" && if [ -n "$(docker images -aq)" ]; then docker rmi -f $(docker images -aq); fi; echo "Removing volumes :" && if [ -n "$(docker volume ls -q)" ]; then docker volume rm $(docker volume ls -q); fi; echo "Removing networks :" && if [ -n "$(docker network ls | awk '{print $1" "$2}' | grep -v 'ID\|bridge\|host\|none' | awk '{print $1}')" ]; then docker network rm $(docker network ls | awk '{print $1" "$2}' | grep -v 'ID\|bridge\|host\|none' | awk '{print $1}'); fi; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const main = { | |
colors: { | |
primary: '#222327', | |
light: '#bdbbbc', | |
gray: '#898a8f', | |
white: '#ffffff', | |
black: '#121212', | |
green: '#1db954', | |
transparent: 'transparent' | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<key>UIAppFonts</key> | |
<array> | |
<string>AntDesign.ttf</string> | |
<string>Entypo.ttf</string> | |
<string>EvilIcons.ttf</string> | |
<string>Feather.ttf</string> | |
<string>FontAwesome.ttf</string> | |
<string>FontAwesome5_Brands.ttf</string> | |
<string>FontAwesome5_Regular.ttf</string> | |
<string>FontAwesome5_Solid.ttf</string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// libraries | |
import React from 'react' | |
import { View, Text } from 'react-native' | |
import { NavigationContainer } from '@react-navigation/native' | |
import { createMaterialBottomTabNavigator } from '@react-navigation/material-bottom-tabs' | |
import Icon from 'react-native-vector-icons/FontAwesome5' | |
const Container = ({ children }) => ( | |
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
bracketSpacing: true, | |
jsxBracketSameLine: false, | |
singleQuote: true, | |
trailingComma: 'none', | |
semi: false, | |
commaDangle: false | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"baseUrl": ".", | |
"paths": { | |
"*": ["src/*"] | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
presets: ['module:metro-react-native-babel-preset'], | |
plugins: [ | |
[ | |
'module-resolver', | |
{ | |
root: ['./src'], | |
alias: { | |
components: './src/components', | |
assets: './src/assets', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
root: true, | |
extends:[ | |
'@react-native-community', | |
"plugin:import/errors", | |
"plugin:import/warnings" | |
], | |
"settings": { | |
"import/resolver": { | |
"babel-module": {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from 'react' | |
import styled from 'styled-components' | |
// define styled component container | |
const SimpleComponentContainer = styled.div` | |
background-color: ${({ counter }) => counter > 10 ? 'red' : '#ddd' }; | |
` | |
export default function SimpleComponent(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Fragment, useState } from 'react' | |
export default function SimpleComponent(){ | |
const [counter, setCounter] = useState(0) | |
function handleOnClick(e){ | |
e.preventDefault() | |
setCounter(counter + 1) | |
} |
NewerOlder