View adding_flipper.diff
This file contains 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
diff --git a/android/app/build.gradle b/android/app/build.gradle | |
index 6560b78..eade6f6 100644 | |
--- a/android/app/build.gradle | |
+++ b/android/app/build.gradle | |
@@ -176,12 +176,21 @@ android { | |
} | |
} | |
+ packagingOptions { | |
+ pickFirst '**/libc++_shared.so' |
View fix-yoga-react-native.sh
This file contains 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
sed -i '.bak' s/\'yoga\'/\'Yoga\'/ node_modules/react-native/ReactCommon/yoga/yoga.podspec | |
sed -i '.bak' s/\#\{version\}\.React/1\.14\.3/ node_modules/react-native/ReactCommon/yoga/yoga.podspec | |
sed -i '.bak' s/\#.Pinning/spec.pod_target_xcconfig=\{\'DEFINES_MODULE\'=\>\'YES\'\\}\#/ node_modules/react-native/ReactCommon/yoga/yoga.podspec | |
sed -i '.bak' s/\"yoga\",.\"\#\{version\}\.React\"/\"Yoga\"/ node_modules/react-native/React/React-Core.podspec | |
sed -i '.bak' s/\'yoga\'/\'Yoga\'/ ios/Podfile |
View MainApplication.java
This file contains 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
// Call this in MainApplication.onCreate(), just after Soloader line. | |
private static void initialize(Context context) { | |
if (BuildConfig.DEBUG) { | |
try { | |
/* | |
We use reflection here to pick up the class that initializes Flipper, | |
since Flipper library is not available in release mode | |
*/ | |
Class<?> aClass = Class.forName("com.facebook.flipper.ReactNativeFlipper"); | |
aClass.getMethod("initializeFlipper", Context.class).invoke(null, context); |
View JSIObject.cpp
This file contains 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
// This sample is a Work in Progress for JSI , and specific functions may change. | |
#pragma once | |
#include <string> | |
#include <unordered_map> | |
#include <jsi/jsi.h> | |
// This SameplJSIObject needs to inheric from HostObject, and this is the object that will be exposed to JS. |
View FlutterToastPlugin.java
This file contains 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
package com.example.helloflutterplugin; | |
import com.facebook.react.bridge.ReactApplicationContext; | |
import com.facebook.react.modules.toast.ToastModule; | |
import com.nparashuram.reactnative.ReactNativeModuleAdapter; | |
import io.flutter.plugin.common.MethodCall; | |
import io.flutter.plugin.common.MethodChannel; | |
import io.flutter.plugin.common.MethodChannel.MethodCallHandler; | |
import io.flutter.plugin.common.MethodChannel.Result; | |
import io.flutter.plugin.common.PluginRegistry.Registrar; |
View PerfLogger.java
This file contains 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
package com.nparashuram; | |
import android.os.Process; | |
import android.text.TextUtils; | |
import android.util.Log; | |
import android.view.View; | |
import android.view.ViewTreeObserver; | |
import com.facebook.react.ReactInstanceManager; | |
import com.facebook.react.ReactNativeHost; | |
import com.facebook.react.bridge.ReactContext; |
View MainApplication.java
This file contains 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
@Override | |
public void onCreate() { | |
super.onCreate(); | |
///////// Add lines below this to capture times of the large sections | |
final String TAG = "RN_STARTUP"; // If you already have a TAG for the app, use that instead. | |
final TimingLogger timingLogger = new TimingLogger("AXE", "REACT_NATIVE_STARTUP"); | |
timingLogger.reset(); | |
ReactMarker.addListener(new ReactMarker.MarkerListener() { | |
@Override |
View showpassword.user.js
This file contains 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
// ==UserScript== | |
// @name Show Password | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
function handleDblClick(e){ | |
var pwd = e.target; | |
var type = pwd.getAttribute('type'); | |
pwd.setAttribute('type', type === 'password' ? 'text': 'password'); |
View feedly.user.js
This file contains 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
// ==UserScript== | |
// @name Feedly - Open entry in background (Modified) | |
// @description Adds 'h' as a hotkey to open selected entry in background tab | |
// @namespace gist.github.com/axemclion/11b6968d2418caad7528e1e629af3886/edit | |
// @author axemclion | |
// @include http://feedly.com/* | |
// @include https://feedly.com/* | |
// @include http://*.feedly.com/* | |
// @include https://*.feedly.com/* | |
// @grant GM.openInTab |
View app.jsx
This file contains 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 Push from 'mobile-center-push'; | |
import CodePush from 'react-native-code-push'; | |
import { AppState } from 'react-native'; | |
export default class MyApp extends Component { | |
// Component Logic ... | |
} | |
Push.setEventListener({ | |
pushNotificationReceived: function (pushNotification) { |
NewerOlder