# WebView prop documented in v0.22 reference is missing from the published npm package

**URL:** <https://community.amazondeveloper.com/t/webview-prop-documented-in-v0-22-reference-is-missing-from-the-published-npm-package/28403>\
**Category:** Bug Reports\
**Tags:** vega-libraries\
**Created:** [May 25, 2026, 11:53am UTC](https://community.amazondeveloper.com/t/webview-prop-documented-in-v0-22-reference-is-missing-from-the-published-npm-package/28403 "2026-05-25T11:53:30Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![lamoule](https://avatars.discourse-cdn.com/v4/letter/l/eada6e/32.png) [@lamoule](https://community.amazondeveloper.com/u/lamoule)\
**Post date:** [May 25, 2026, 11:53am UTC](https://community.amazondeveloper.com/t/webview-prop-documented-in-v0-22-reference-is-missing-from-the-published-npm-package/28403/1 "2026-05-25T11:53:30Z")

</div>

* * *

# 👉 Bug Description

* * *

## 1. Summary

The Vega 0.22 WebView Component Reference (last updated May 11) documents injectedJavaScriptBeforeContentLoaded. However, the only version of @amazon-devicesamazon-devices/webview published to the public npm registry is 3.3.1769932800 (latest tag, ~8 months old), and that package does not expose injectedJavaScriptBeforeContentLoaded anywhere.

**Bug Severity**  
Select one that applies

- Impacts operation of app
- Blocks current development
- Improvement suggestion
- Issue with documentation (If selected, please share the doc link and describe the issue)
- Other

> **[Vega WebView Component Reference | Vega API](https://developer.amazon.com/docs/vega-api/0.22/webview-component-reference.html)**
>
> Open Beta Documentation Amazon offers this technical documentation as part of a pre-release, open beta. The features described might change as Amazon receives feedback an...

## 2. Steps to Reproduce

1. `Open ` [https://developer.amazon.com/docs/vega-api/0.22/webview-component-reference.html`](https://developer.amazon.com/docs/vega-api/0.22/webview-component-reference.html%60) and locate injectedJavaScriptBeforeContentLoaded.`
2. `In a Vega project, install @amazon-devices/webview (resolves to 3.3.1769932800)`
3. `Use the prop: <WebView injectedJavaScriptBeforeContentLoaded={“`…`”}`
4. `TypeScript error: property does not exist on the WebView props type`

## 3. Observed Behavior

```auto
injectedJavaScriptBeforeContentLoaded is entirely absent from the package's .d.ts files.

```

## 4. Expected Behavior

The prop is to be working as per the doc page on the publicly distributed @amazon-devices/webview.

### 4.a Possible Root Cause & Temporary Workaround

Workaround currently in use: webviewRef.current?.injectJavaScript(…) from onLoadStart, but this is not ideal, would like to set window object values of API information to the webView before its loaded.

## 5. Logs or crash report

Property ‘injectedJavaScriptBeforeContentLoaded’ does not exist on type ‘IntrinsicAttributes & KeplerWebViewProps & RefAttributes’

## 6. Environment

_Please fill out the fields related to your bug below:_

- **SDK Version:** Active SDK Version: 0.22.6759  
Vega CLI Version: 1.2.22

## 7. Example Code Snippet / Screenshots / Screengrabs

```auto
<WebView
  source={{ uri: 'https://reactnative.dev' }}
  injectedJavaScriptBeforeContentLoaded={INJECTED_JAVASCRIPT}

```

##

---

<div class="post-metadata">

**Author:** ![Ivy](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/ivy/32/5637_2.png) [@Ivy](https://community.amazondeveloper.com/u/Ivy)\
**Post date:** [May 26, 2026, 5:55am UTC](https://community.amazondeveloper.com/t/webview-prop-documented-in-v0-22-reference-is-missing-from-the-published-npm-package/28403/4 "2026-05-26T05:55:40Z")

</div>

Hello @lamoule

Welcome to Amazon Developer Community!!  
Thank you for reporting this, I’m looking into this and will come back with an update ASAP.

Warm Regards,  
Ivy

---

<div class="post-metadata">

**Author:** ![Ivy](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/ivy/32/5637_2.png) [@Ivy](https://community.amazondeveloper.com/u/Ivy)\
**Post date:** [May 27, 2026, 6:00am UTC](https://community.amazondeveloper.com/t/webview-prop-documented-in-v0-22-reference-is-missing-from-the-published-npm-package/28403/6 "2026-05-27T06:00:42Z")

</div>

Hello @lamoule

I can confirm that the `injectedJavaScriptBeforeContentLoaded` API was not included in the `@amazon-devices/webview@3.3.17` release.

This API is, however, available starting in version 3.5.10.  
For now, can you please use 3.5.10 or higher ?

Warm Regards,  
Ivy

---

<div class="post-metadata">

**Author:** ![niels](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@niels](https://community.amazondeveloper.com/u/niels)\
**Post date:** [May 27, 2026, 6:59am UTC](https://community.amazondeveloper.com/t/webview-prop-documented-in-v0-22-reference-is-missing-from-the-published-npm-package/28403/7 "2026-05-27T06:59:38Z")

</div>

Hi @Ivy,

I’m also experiencing the same issue. You suggest using a newer version of the package but there isn’t one. Only a single version is available on NPM and that is 3.3.1769932800: [https://www.npmjs.com/package/@amazon-devices/webview?activeTab=versions](https://www.npmjs.com/package/@amazon-devices/webview?activeTab=versions)

Would it be possible to publish this 3.5.10 version?

Thanks

---

<div class="post-metadata">

**Author:** ![Ivy](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/ivy/32/5637_2.png) [@Ivy](https://community.amazondeveloper.com/u/Ivy)\
**Post date:** [May 27, 2026, 3:43pm UTC](https://community.amazondeveloper.com/t/webview-prop-documented-in-v0-22-reference-is-missing-from-the-published-npm-package/28403/8 "2026-05-27T15:43:49Z")

</div>

Hello @niels

Welcome to Amazon Developer Community!  
Quick question, how are you downloading and installing npm package?

Warm regards,  
Ivy

---

<div class="post-metadata">

**Author:** ![niels](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@niels](https://community.amazondeveloper.com/u/niels)\
**Post date:** [May 27, 2026, 3:57pm UTC](https://community.amazondeveloper.com/t/webview-prop-documented-in-v0-22-reference-is-missing-from-the-published-npm-package/28403/9 "2026-05-27T15:57:48Z")

</div>

I don’t think the tool used to download/install the packages is relevant here, as the link to the (one and only) NPM registry clearly shows there are no different versions released for the webview package.

However, to answer the question: I’m using NPM 11.12.1.

---

<div class="post-metadata">

**Author:** ![Ivy](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/ivy/32/5637_2.png) [@Ivy](https://community.amazondeveloper.com/u/Ivy)\
**Post date:** [May 27, 2026, 5:32pm UTC](https://community.amazondeveloper.com/t/webview-prop-documented-in-v0-22-reference-is-missing-from-the-published-npm-package/28403/10 "2026-05-27T17:32:50Z")

</div>

@niels thank you for sharing.

Could you please install the latest WebView NPM version using  
`npm install @amazon-devices/webview@3.5.10` and let us know if the issue resolved?

Warm regards,  
Ivy

---

<div class="post-metadata">

**Author:** ![niels](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@niels](https://community.amazondeveloper.com/u/niels)\
**Post date:** [May 27, 2026, 5:46pm UTC](https://community.amazondeveloper.com/t/webview-prop-documented-in-v0-22-reference-is-missing-from-the-published-npm-package/28403/11 "2026-05-27T17:46:04Z")

</div>

As you would expect this doesn’t work. The package version doesn’t exist (once again, check the link I shared).

npm install @amazon-devicesamazon-devices/webview@3.5.10  
npm error code ETARGET  
npm error notarget No matching vers@amazon-deviceson found for @amazon-devices/webview@3.5.10.  
npm error notarget In most cases you or one of your dependencies are requesting a package version that doesn’t exist.

---

<div class="post-metadata">

**Author:** ![lamoule](https://avatars.discourse-cdn.com/v4/letter/l/eada6e/32.png) [@lamoule](https://community.amazondeveloper.com/u/lamoule)\
**Post date:** [May 28, 2026, 3:13pm UTC](https://community.amazondeveloper.com/t/webview-prop-documented-in-v0-22-reference-is-missing-from-the-published-npm-package/28403/12 "2026-05-28T15:13:55Z")

</div>

> [@Ivy](#):
>
> npm install @amazon-devicesamazon-devicesamazon-devicesamazon-devicesamazon-devicesamazon-devicesamazon-devicesamazon-devices/webview@3.5.10

Hey @Ivy As niels mentioned, this package is not available. The only available version is [3.3.1769932800](https://www.npmjs.com/package/@amazon-devices/webview/v/3.3.1769932800)

---

<div class="post-metadata">

**Author:** ![Ivy](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/ivy/32/5637_2.png) [@Ivy](https://community.amazondeveloper.com/u/Ivy)\
**Post date:** [May 29, 2026, 6:22am UTC](https://community.amazondeveloper.com/t/webview-prop-documented-in-v0-22-reference-is-missing-from-the-published-npm-package/28403/13 "2026-05-29T06:22:47Z")

</div>

@lamoule , Thanks for confirming.  
We are investigating this internally and I’ll update you ASAP.

Warm Regards,  
Ivy

---

<div class="post-metadata">

**Author:** ![lamoule](https://avatars.discourse-cdn.com/v4/letter/l/eada6e/32.png) [@lamoule](https://community.amazondeveloper.com/u/lamoule)\
**Post date:** [June 2, 2026, 7:38pm UTC](https://community.amazondeveloper.com/t/webview-prop-documented-in-v0-22-reference-is-missing-from-the-published-npm-package/28403/14 "2026-06-02T19:38:17Z")

</div>

Hey @Ivy any update on this issue ? thanks

---

<div class="post-metadata">

**Author:** ![Ivy](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/ivy/32/5637_2.png) [@Ivy](https://community.amazondeveloper.com/u/Ivy)\
**Post date:** [June 3, 2026, 5:40am UTC](https://community.amazondeveloper.com/t/webview-prop-documented-in-v0-22-reference-is-missing-from-the-published-npm-package/28403/15 "2026-06-03T05:40:45Z")

</div>

Hey @lamoule

We are working on this isue, I’ll update you ASAP.

Warm regards,  
Ivy

---

<div class="post-metadata">

**Author:** ![Ivy](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/ivy/32/5637_2.png) [@Ivy](https://community.amazondeveloper.com/u/Ivy)\
**Post date:** [June 4, 2026, 7:14am UTC](https://community.amazondeveloper.com/t/webview-prop-documented-in-v0-22-reference-is-missing-from-the-published-npm-package/28403/16 "2026-06-04T07:14:47Z")

</div>

Hello @lamoule , @niels

We’ve identified the root cause of this issue. The currently public exported npm package is **webview v3.3.17** , which does _not_ include the `injectedJavaScriptBeforeContentLoaded` API - that feature was introduced in **v3.5.x** , which hasn’t been released to customers yet.

Requesting you to please **wait for the next release (v0.23)** , which is expected soon.  
Thank you for identifying this issue and helping us make Vega better.

Warm regards,  
Ivy

---

<div class="post-metadata">

**Author:** ![system](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/system/32/5065_2.png) [@system](https://community.amazondeveloper.com/u/system)\
**Post date:** [June 18, 2026, 7:15am UTC](https://community.amazondeveloper.com/t/webview-prop-documented-in-v0-22-reference-is-missing-from-the-published-npm-package/28403/17 "2026-06-18T07:15:12Z")

</div>

Closed on June 18, 2026, 7:15am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
