id imageInsets = tabItemLayout[@"props"][@"iconInsets"];
if (imageInsets && imageInsets != (id)[NSNull null])
{
id topInset = imageInsets[@"top"];
id leftInset = imageInsets[@"left"];
id bottomInset = imageInsets[@"bottom"];
id rightInset = imageInsets[@"right"];
CGFloat top = topInset != (id)[NSNull null] ? [RCTConvert CGFloat:topInset] : 0;
This file has been truncated, but you can view the full file.
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
! function(t) { | |
function e(t) { | |
function e(e) { | |
if (o.onerror = o.onload = o.onreadystatechange = null, e) { | |
var i = s[t]; | |
if (delete s[t], i) | |
for (; i.length;) i.shift().error.call(null, n) | |
} | |
} | |
var i = document.getElementsByTagName("head")[0], |
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
compile(project(':react-native-device-info')){ | |
exclude group: 'com.google.android.gms', module: 'play-services-gcm' | |
} | |
compile 'com.google.android.gms:play-services-gcm:9.8.0' | |
compile project(':react-native-maps') |
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
document.querySelector('#printLink').addEventListener('click', function() { | |
var iframe = document.querySelector('.printLink-iframe'); | |
if (!iframe) { | |
iframe = document.createElement('div'); | |
iframe.style.display = 'none'; | |
iframe.classList.add('printLink-iframe'); | |
} | |
iframe.innerHTML = '<iframe src="/printLink-iframe"></iframe>'; | |
document.body.appendChild(iframe); |
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
document.querySelector('#printLink').addEventListener('click', function() { | |
var iframe = document.querySelector('.printLink-iframe'); | |
if (!iframe) { | |
iframe = document.createElement('div'); | |
iframe.style.display = 'none'; | |
iframe.classList.add('printLink-iframe'); | |
} | |
iframe.innerHTML = '<iframe src="/printLink-iframe"></iframe>'; | |
document.body.appendChild(iframe); |
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
function injectCSS(css) { | |
var style = document.createElement('style'); | |
style.innerHTML = css; | |
document.head.appendChild(style); | |
} | |
document.addEventListener('DOMContentLoaded', function() { | |
injectCSS('.header-widget {display: none}') |
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
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
* @flow | |
*/ | |
import React, { Component } from 'react'; | |
import { | |
AppRegistry, | |
StyleSheet, |
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
// "react-native": "0.42.0", | |
// "react-navigation": "^1.0.0-beta.7" | |
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
* @flow | |
*/ |
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
function highlightStr(name, query) { | |
if (!query) | |
return [ | |
{ | |
str: name, | |
isHighlight: false | |
} | |
]; | |
const queryRegx = new RegExp(query, "ig"); |
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
# change xcode project name from "BadNamedProject" to "GoodNamedProject" | |
# change code | |
grep -r 'BadNamedProject' -l --null . | xargs -0 sed -i '' 's#BadNamedProject#GoodNamedProject#g' | |
# change filename | |
find . -depth -name "*BadNamedProject*" -execdir sh -c 'mv {} $(echo {} | sed "s/BadNamedProject/GoodNamedProject/")' \; | |