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
window.addEventListener("orientationchange", function() { | |
var orientationChange = function(evt) { | |
//Put your code here | |
if (window.matchMedia("(orientation: landscape)").matches) { | |
alert("landscape"); | |
} | |
else { | |
alert("portrait"); | |
} | |
window.removeEventListener('resize', orientationChange); |
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
/* | |
Source:http://stackoverflow.com/questions/18736297/webkit-overflow-scrolling-touch-broken-for-initially-offscreen-elements-in-i | |
*/ | |
document.getElementById("scrollbox").addEventListener('touchstart', function(event){}); |
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
#!/bin/bash | |
# | |
# Helper functions | |
# | |
function pause(){ | |
read -p "$*" | |
} |
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
.*"status":400.* |
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
var DOM = (selector, context) => ( | |
dom => DOM2 = (selector, content) => ( | |
DOM2.toString = () => dom, | |
dom += `<${selector}>${content}<\/${selector.split(' ')[0]}>`, | |
DOM2 | |
))('') | |
(selector, context) |
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/node_modules/babel-preset-expo/index.js b/node_modules/babel-preset-expo/index.js | |
index 1022490..08c8182 100644 | |
--- a/node_modules/babel-preset-expo/index.js | |
+++ b/node_modules/babel-preset-expo/index.js | |
@@ -31,6 +31,8 @@ module.exports = function(api, options = {}) { | |
// Reference: https://github.com/expo/expo/pull/4685#discussion_r307143920 | |
require('metro-react-native-babel-preset'), | |
{ | |
+ dev: platform === 'web', | |
+ useTransformReactJsxExperimental: platform === 'web', |
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
const path = require("path"); | |
const { withUnimodules } = require("@expo/webpack-config/addons"); | |
module.exports = { | |
stories: ["../src/**/*.stories.@(ts|tsx|js|jsx)"], | |
webpackFinal: async (config) => { | |
return withUnimodules( | |
config, | |
{ | |
projectRoot: path.resolve(__dirname, "../"), |
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
module.exports = { | |
presets: ["next/babel"], | |
plugins: [["react-native-web", { commonjs: true }]], | |
}; |
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/node_modules/@expo/next-adapter/build/withExpo.js b/node_modules/@expo/next-adapter/build/withExpo.js | |
index 2e63eb4..b1cf9a9 100644 | |
--- a/node_modules/@expo/next-adapter/build/withExpo.js | |
+++ b/node_modules/@expo/next-adapter/build/withExpo.js | |
@@ -7,8 +7,8 @@ function withExpo(nextConfig = {}) { | |
// Prevent define plugin from overwriting Next.js environment. | |
process.env.EXPO_WEBPACK_DEFINE_ENVIRONMENT_AS_KEYS = 'true'; | |
const expoConfig = addons_1.withUnimodules(config, { | |
- projectRoot: nextConfig.projectRoot || process.cwd(), | |
- }, { supportsFontLoading: false }); |
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 file was generated by tailwindcss-react-native. Do not edit! | |
const { StyleSheet } = require("react-native") | |
module.exports = { | |
styles: { | |
"flex-1": { | |
"flexGrow": 1, | |
"flexShrink": 1 | |
}, | |
"flex-row": { | |
"flexDirection": "row" |
OlderNewer