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
type ItemResponse = { | |
items: number[]; | |
error?: Error; | |
}; | |
function getItems(shouldReject: boolean): Promise<ItemResponse> { | |
return new Promise((resolve, reject) => { | |
if (!shouldReject) return resolve({ items: [1, 2, 3, 4, 5] }); | |
reject(new Error("Something wrong happened.")); | |
}); |
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
vim.wo.foldcolumn = '1' | |
vim.wo.foldlevel = 99 -- feel free to decrease the value | |
vim.wo.foldenable = true | |
vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:]] | |
require('packer').startup(function() | |
use {'kevinhwang91/nvim-ufo', requires = 'kevinhwang91/promise-async'} | |
-- using coc.nvim as LSP client | |
use {'neoclide/coc.nvim', branch = 'master', run = 'yarn install --frozen-lockfile'} |
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
lua require('plugins') | |
:set number | |
:set autoindent | |
:set tabstop=2 | |
:set shiftwidth=2 | |
:set expandtab | |
:set smartindent | |
:set mouse=a |
I hereby claim:
- I am rorisme on github.
- I am rorisme (https://keybase.io/rorisme) on keybase.
- I have a public key ASA6xlqCTFlNT--NuAkUgmWkd0X7lemuLsA8z0JIvVlS1Qo
To claim this, I am signing this object: