Install, build and debug a react native app in WSL2 (Windows Subsystem for Linux) and Ubuntu.
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 pombify = (phrase) => { | |
| return phrase | |
| .split(' ') | |
| .map((word) => { | |
| const wordLetters = word.split('') | |
| return wordLetters | |
| .map((letter, index) => { | |
| const charCode = letter.charCodeAt(0); | |
| const binary = charCode | |
| .toString(2) |
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
| name: Build Android | |
| on: | |
| push: | |
| branches: [dev] | |
| pull_request: | |
| branches: [dev] | |
| workflow_dispatch: |
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 from 'react'; | |
| import { | |
| SafeAreaView, | |
| StyleSheet, | |
| Text, | |
| } from 'react-native'; | |
| import { | |
| CommonActions, | |
| DrawerActions, | |
| useLinkBuilder, |
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
| server { | |
| server_name testdeploy.rocketseat.com.br; | |
| location / { | |
| proxy_pass http://127.0.0.1:3333; | |
| proxy_http_version 1.1; | |
| proxy_set_header Upgrade $http_upgrade; | |
| proxy_set_header Connection 'upgrade'; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; |
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 { | |
| Entity, | |
| PrimaryGeneratedColumn, | |
| Column, | |
| ManyToOne, | |
| BaseEntity, | |
| } from 'typeorm' | |
| import { Profile } from 'entities' | |
| import { ActivityTargetType, ActivityVerb } from './enums' |