Skip to content

Instantly share code, notes, and snippets.

Avatar

Raí Vieira Adriano raivieiraadriano92

View GitHub Profile
@raivieiraadriano92
raivieiraadriano92 / apple.sh
Created Jun 26, 2021 — forked from 50percentgrey/apple.sh
Delete-Clean Unnecessary files / Apple / Xcode
View apple.sh
#!/bin/bash
# Delete Archived Applications
rm -r ~/Library/Developer/Xcode/Archives/*/
# Delete Devired Data
rm -r ~/Library/Developer/Xcode/DerivedData/*/
# Delete Apple cached files
rm -r ~/Library/Developer/CoreSimulator/Caches/dyld/*/*/
View Setting React Native in Fedora
# Install Node.js
sudo dnf install nodejs
#Install React Native
sudo npm install -g react-native-cli
sudo mount -o remount,size=50G /tmp/
# Download and install Android Studio
# https://developer.android.com/studio/install.html
View React Native Errors + Solutions
---iOS---
https://github.com/facebook/react-native-fbsdk/issues/794
https://khushwanttanwar.medium.com/xcode-12-compilation-errors-while-running-with-ios-14-simulators-5731c91326e9
View pine
/**
.
...
.....
.......
.........
*/
let node = 1;
View example react-navigation v3
//routes.js
import { createStackNavigator, createSwitchNavigator, createAppContainer } from 'react-navigation';
import SignIn from './screens/SignIn';
import Home from './screens/Home';
const AuthNavigator = createStackNavigator({
SignIn,
});
@raivieiraadriano92
raivieiraadriano92 / DevToolsConfig.js
Last active Aug 16, 2018
React - Config ReactDevtools
View DevToolsConfig.js
if (__DEV__) {
require('react-devtools');
}
View Configure react-native-maps
https://itnext.io/install-react-native-maps-with-gradle-3-on-android-44f91a70a395
View React - Config Reactotron
# run
$ yarn add --dev reactotron-react-native
# create the src/config/ReactotronConfig.js file as what is attached
# add in file src/index.js the line:
# import 'config/ReactotronConfig';
View .babelrc
{
"presets": [
"react-native"
],
"plugins": [
[
"module-resolver",
{
"cwd": "babelrc",
"root": [
View .eslintrc
{
"parser": "babel-eslint",
"env": {
"browser": true,
"jest": true
},
"plugins": [
"react-native",
"jsx-a11y",
"import"