Skip to content

Commit f56f1de

Browse files
fix(android): use Fragment.requireContext to fetch context (#236)
Co-authored-by: Andrés Pérez Manríquez <apandresipm@gmail.com>
1 parent 6a2d7f5 commit f56f1de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/RNAppleAuthentication/webview/SignInWebViewDialogFragment.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ internal class SignInWebViewDialogFragment : DialogFragment() {
5050
): View? {
5151
super.onCreateView(inflater, container, savedInstanceState)
5252

53-
val webView = WebView(context!!).apply {
53+
val webView = WebView(requireContext()).apply {
5454
settings.apply {
5555
javaScriptEnabled = true
5656
javaScriptCanOpenWindowsAutomatically = true

0 commit comments

Comments
 (0)