MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / needInputShims

Function needInputShims

core/src/components/app/app.tsx:110–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108}
109
110const needInputShims = () => {
111 /**
112 * iOS always needs input shims
113 */
114 const needsShimsIOS = isPlatform(window, 'ios') && isPlatform(window, 'mobile');
115 if (needsShimsIOS) {
116 return true;
117 }
118
119 /**
120 * Android only needs input shims when running
121 * in the browser and only if the browser is using the
122 * new Chrome 108+ resize behavior: https://developer.chrome.com/blog/viewport-resize-behavior/
123 */
124 const isAndroidMobileWeb = isPlatform(window, 'android') && isPlatform(window, 'mobileweb');
125 if (isAndroidMobileWeb) {
126 return true;
127 }
128
129 return false;
130};

Callers 1

componentDidLoadMethod · 0.85

Calls 1

isPlatformFunction · 0.90

Tested by

no test coverage detected