React Native 위젯 연동시 Warning이 발생합니다.

    "@tosspayments/widget-sdk-react-native": "^1.3.0", 
`<PaymentWidgetProvider
        clientKey={TOSS_REAL_API_KEY}
        customerKey={'DDF_dDF123sdDDD'}>`  

` <PaymentMethodWidget
        selector="payment-methods"
        onLoadEnd={() => {
          setTimeout(() => {
            paymentWidgetControl
              .renderPaymentMethods(
                'payment-methods',
                {value: price},
                {
                  variantKey: 'DEFAULT',
                },
              )
              .then(control => {
                setPaymentMethodWidgetControl(control);
              });
          }, 0);
        }}
      />` 

, 스 paymentMethodWidget

Error evaluating injectedJavaScript: This is possibly due to an unsupported return type. Try adding true to the end of your injectedJavaScript string. Error Domain=WKErrorDomain Code=4 "A JavaScript exception occurred" UserInfo={WKJavaScriptExceptionLineNumber=3, WKJavaScriptExceptionMessage=ReferenceError: Can't find variable: PaymentWidget, WKJavaScriptExceptionColumnNumber=33, WKJavaScriptExceptionSourceURL=about:blank, NSLocalizedDescription=A JavaScript exception occurred}


. ?
Was this page helpful?