Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React-native-webview部分属性和方法没有鸿蒙化 #200

Open
mingmingaini opened this issue Sep 7, 2024 · 0 comments
Open

React-native-webview部分属性和方法没有鸿蒙化 #200

mingmingaini opened this issue Sep 7, 2024 · 0 comments

Comments

@mingmingaini
Copy link

mingmingaini commented Sep 7, 2024

Feature Request

React-native-webview部分属性和方法没有鸿蒙化
属性:automaticallyAdjustContentInsets?: boolean
originWhitelist?[],
automaticallyAdjustsScrollIndicatorInsets?: boolean
injectedJavaScriptForMainFrameOnly?: boolean
injectedJavaScriptBeforeContentLoadedForMainFrameOnly?: boolean
nativeConfig?: WebViewNativeConfig
decelerationRate?: DecelerationRateConstant | number
javaScriptCanOpenWindowsAutomatically?: boolean
androidLayerType?: AndroidLayerType
mixedContentMode?: 'never' | 'always' | 'compatibility'
allowsFullscreenVideo?: boolean
allowsInlineMediaPlayback?: boolean
allowsAirPlayForMediaPlayback?: boolean
contentInset?: ContentInsetProp
contentInsetAdjustmentBehavior?: ContentInsetAdjustmentBehavior
contentMode?: ContentMode
dataDetectorTypes?: DataDetectorTypes | DataDetectorTypes[]
setBuiltInZoomControls?: boolean
setDisplayZoomControls?: boolean
directionalLockEnabled?: boolean
allowFileAccessFromFileURLs?: boolean
allowUniversalAccessFromFileURLs?: boolean
allowingReadAccessToURL?: string
keyboardDisplayRequiresUserAction?: boolean
hideKeyboardAccessoryView?: boolean
allowsBackForwardNavigationGestures?: boolean
allowFileAccess?: boolean
saveFormDataDisabled?: boolean
pagingEnabled?: boolean
allowsLinkPreview?: boolean
sharedCookiesEnabled?: boolean
limitsNavigationsToAppBoundDomains?: boolean
textInteractionEnabled?: boolean
suppressMenuItems?: SuppressMenuItem[]
mediaCapturePermissionGrantType?: MediaCapturePermissionGrantType
autoManageStatusBarEnabled?: boolean
enableApplePay?: boolean
basicAuthCredential?: BasicAuthCredential
useWebView2?: boolean
downloadingMessage?: string
lackPermissionToDownloadMessage?: string
allowsProtectedMedia?: boolean
source method
source.body

方法:onOpenWindow?: (event: WebViewOpenWindowEvent) => void
onContentProcessDidTerminate?: (event: WebViewTerminatedEvent) => void
renderLoading?: () => ReactElement;
"onCustomMenuSelection?: (event: {nativeEvent: {
label: string;
key: string;
selectedText: string;
}
}) => void"
实列方法:clearFormData
已上属性和方法需要适配harmonyOS

Why it is needed

原库已适配以上的属性和方法

Possible implementation

以上方法在harmonyOS暂时不支持,没有对应功能的api

Code sample

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant