MCPcopy
hub / github.com/react-native-webview/react-native-webview / NativeProps

Interface NativeProps

src/RNCWebViewNativeComponent.ts:133–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131// type MenuItem = Readonly<{label: string, key: string}>;
132
133export interface NativeProps extends ViewProps {
134 // Android only
135 allowFileAccess?: boolean;
136 allowsProtectedMedia?: boolean;
137 allowsFullscreenVideo?: boolean;
138 androidLayerType?: WithDefault<'none' | 'software' | 'hardware', 'none'>;
139 cacheMode?: WithDefault<
140 'LOAD_DEFAULT' | 'LOAD_CACHE_ELSE_NETWORK' | 'LOAD_NO_CACHE' | 'LOAD_CACHE_ONLY',
141 'LOAD_DEFAULT'
142 >;
143 domStorageEnabled?: boolean;
144 downloadingMessage?: string;
145 forceDarkOn?: boolean;
146 geolocationEnabled?: boolean;
147 lackPermissionToDownloadMessage?: string;
148 messagingModuleName: string;
149 minimumFontSize?: Int32;
150 mixedContentMode?: WithDefault<'never' | 'always' | 'compatibility', 'never'>;
151 nestedScrollEnabled?: boolean;
152 onContentSizeChange?: DirectEventHandler<WebViewNativeEvent>;
153 onRenderProcessGone?: DirectEventHandler<WebViewRenderProcessGoneEvent>;
154 overScrollMode?: string;
155 saveFormDataDisabled?: boolean;
156 scalesPageToFit?: WithDefault<boolean, true>;
157 setBuiltInZoomControls?: WithDefault<boolean, true>;
158 setDisplayZoomControls?: boolean;
159 setSupportMultipleWindows?: WithDefault<boolean, true>;
160 textZoom?: Int32;
161 thirdPartyCookiesEnabled?: WithDefault<boolean, true>;
162 // Workaround to watch if listener if defined
163 hasOnScroll?: boolean;
164 // !Android only
165
166 // iOS only
167 allowingReadAccessToURL?: string;
168 allowsBackForwardNavigationGestures?: boolean;
169 allowsInlineMediaPlayback?: boolean;
170 allowsPictureInPictureMediaPlayback?: boolean;
171 allowsAirPlayForMediaPlayback?: boolean;
172 allowsLinkPreview?: WithDefault<boolean, true>;
173 automaticallyAdjustContentInsets?: WithDefault<boolean, true>;
174 autoManageStatusBarEnabled?: WithDefault<boolean, true>;
175 bounces?: WithDefault<boolean, true>;
176 contentInset?: Readonly<{
177 top?: Double;
178 left?: Double;
179 bottom?: Double;
180 right?: Double;
181 }>;
182 contentInsetAdjustmentBehavior?: WithDefault<
183 'never' | 'automatic' | 'scrollableAxes' | 'always',
184 'never'
185 >;
186 contentMode?: WithDefault<'recommended' | 'mobile' | 'desktop', 'recommended'>;
187 dataDetectorTypes?: WithDefault<
188 ReadonlyArray<
189 | 'address'
190 | 'link'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…