Skip to content

Instantly share code, notes, and snippets.

Avatar
🗨️
shitcodes live matter

Kolja Ptashitz ptaberg

🗨️
shitcodes live matter
  • Cool Projects Only Ltd.
  • Minsk, Belarus
View GitHub Profile
View json mock
[{"id":1,"title":"Create Todo Model"},{"id":2,"title":"Create Todo View"},{"id":3,"title":"Create Todo Controller"}]
@ptaberg
ptaberg / javascript.js
Created Mar 1, 2019
React Native Update
View javascript.js
Unable to resolve module `react-native-action-button` from `/Users/wse-090-71b/Documents/moved/src/screens/authUser/HomePage.js`: Module `react-native-action-button` does not exist in the Haste module map
This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
1. Clear watchman watches: `watchman watch-del-all`.
2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
3. Reset Metro Bundler cache: `rm -rf /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`.
4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`.
ABI32_0_0RCTFatal
View javascript
// main.js
export walk() {/** . . . */}
export run() {/** . . . */}
export jump() {/** . . . */}
// func.js
import { walk, run, jump } from './main.js'
@ptaberg
ptaberg / html
Created Feb 6, 2019
Adaptive navigation layout
View html
<!DOCTYPE html>
<html>
<header>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>
Real Nav
</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css" />