Skip to content

Instantly share code, notes, and snippets.

@Naturalclar
Naturalclar / react-native-codegen+0.0.7.patch
Created August 10, 2021 08:15
Patch file for react-native-codegen when you need to build android from source with React Native 0.64+
diff --git a/node_modules/react-native-codegen/android/build.gradle b/node_modules/react-native-codegen/android/build.gradle
new file mode 100644
index 0000000..4152a5e
--- /dev/null
+++ b/node_modules/react-native-codegen/android/build.gradle
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
/**
* Original Author: @leko https://github.com/leko
*/
const _ = require("lodash");
const toSlug = (repo) => repo.nameWithOwner;
const obj = {
/**
* github graphql api の結果を入れる。
❯ ./scripts/test-manual-e2e.sh
Preparing version 1000.0.0
> Task :ReactAndroid:androidJavadoc
/Users/jessekatsumata/.ghq/github.com/Naturalclar/react-native/ReactAndroid/src/main/java/com/fac
ebook/yoga/YogaNode.java:10: error: cannot find symbol
import javax.annotation.Nullable;
^
symbol: class Nullable
location: package javax.annotation
We couldn’t find that file to show.
@Naturalclar
Naturalclar / .eslintrc.js
Last active January 21, 2019 07:40
eslint-setup
// for Non-React Projects
module.exports = {
extends: ["airbnb-base", "plugin:prettier/recommended"]
};
// for React Projects
module.exports = {
extends: ["airbnb", "plugin:prettier/recommended"]
};
@Naturalclar
Naturalclar / rn-cli.config.js
Created December 10, 2018 10:39
monorepo内のReact Nativeのバージョンをアップグレードするのに苦労した話 ref: https://qiita.com/Naturalclar/items/24cf310d4580cab35b32
const blacklist = require('metro-config/src/defaults/blacklist')
@Naturalclar
Naturalclar / GitCommitEmoji.md
Created November 22, 2018 03:15 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@Naturalclar
Naturalclar / file0.txt
Created November 22, 2018 02:45
VS Code上でファイル保存時にPrettierを走らせる ref: https://qiita.com/Naturalclar/items/690be378984b3a24a138
"editor.formatOnSave": true
@Naturalclar
Naturalclar / app.jsx
Last active October 29, 2018 23:24
React Hooksを触ってみた - State Hooks ref: https://qiita.com/Naturalclar/items/706d10e4d3a442f4e513
import React, { Component } from "react";
import ReactDOM from "react-dom";
class App extends Component {
constructor() {
super();
this.state = { count: 0 };
}
setCount(val) {
@Naturalclar
Naturalclar / config.h
Created October 16, 2018 01:01
XCode10でReact-Nativeのプロジェクトを実機のiPhoneで試験する ref: https://qiita.com/Naturalclar/items/172ccd8096e82703cac5
/* How to access the PC from a struct ucontext */
#if defined(__arm__) || defined(__arm64__)
#define PC_FROM_UCONTEXT uc_mcontext->__ss.__pc
#else
#define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
#endif