Vladimir Timofeev
e2adacc977
fix(typings): incorrect package.json + fix d.ts( #453 )
...
* fix(typings): fix syntax of main d.ts file
* fix(typings): point typings field in package.json to actual d.ts file
2019-03-26 01:31:50 +01:00
semantic-release-bot
dcc9d3f271
chore(release): 5.4.2 [skip ci]
...
## [5.4.2](https://github.com/react-native-community/react-native-webview/compare/v5.4.1...v5.4.2 ) (2019-03-21)
### Bug Fixes
* **types:** Add missing type definitions of the methods ([#442 ](https://github.com/react-native-community/react-native-webview/issues/442 )) ([54268ff
](https://github.com/react-native-community/react-native-webview/commit/54268ff ))
2019-03-21 14:33:17 +00:00
allcontributors[bot]
94bc15a06a
chore(docs): add svbutko as a contributor ( #443 )
...
Adds @svbutko as a contributor for doc.
This was requested by Titozzz [in this comment](https://github.com/react-native-community/react-native-webview/pull/442#issuecomment-475252579 )
2019-03-21 14:31:14 +00:00
Sergei Butko
54268ff469
fix(types): Add missing type definitions of the methods ( #442 )
...
Also made the exported component a class (to add methods) and made him extend Component instead of ComponentType.
2019-03-21 14:29:57 +00:00
semantic-release-bot
c32f947362
chore(release): 5.4.1 [skip ci]
...
## [5.4.1](https://github.com/react-native-community/react-native-webview/compare/v5.4.0...v5.4.1 ) (2019-03-20)
### Bug Fixes
* **android:** Do not hold a strong reference to native module in the package ([#434 ](https://github.com/react-native-community/react-native-webview/issues/434 )) ([566a629
](https://github.com/react-native-community/react-native-webview/commit/566a629 ))
2019-03-20 13:06:27 +00:00
Stanisław Chmiela
566a6292b4
fix(android): Do not hold a strong reference to native module in the package ( #434 )
2019-03-20 13:04:47 +00:00
Thibault Malbranche
15ae93428f
Update Contributing.md
2019-03-20 12:58:43 +00:00
Thibault Malbranche
89865f2de3
chore(docs): update readme
2019-03-20 12:55:59 +00:00
semantic-release-bot
5166c612c8
chore(release): 5.4.0 [skip ci]
...
# [5.4.0](https://github.com/react-native-community/react-native-webview/compare/v5.3.1...v5.4.0 ) (2019-03-20)
### Features
* **typescript:** Source code rewrite using typescript ([#425 ](https://github.com/react-native-community/react-native-webview/issues/425 )) ([453b7dd
](https://github.com/react-native-community/react-native-webview/commit/453b7dd )), closes [#384 ](https://github.com/react-native-community/react-native-webview/issues/384 ) [#435 ](https://github.com/react-native-community/react-native-webview/issues/435 ) [#206 ](https://github.com/react-native-community/react-native-webview/issues/206 ) [#171 ](https://github.com/react-native-community/react-native-webview/issues/171 ) [#168 ](https://github.com/react-native-community/react-native-webview/issues/168 )
2019-03-20 12:36:49 +00:00
Thibault Malbranche
453b7dd3a0
feat(typescript): Source code rewrite using typescript ( #425 )
...
Rewrote the whole repository into typescript. This will provide way better and up to date documentation. This should also add some safety for people contributing 😄 .
Flow types were not working until now which is why this PR doesn't have them but feel free to PR.
This also fixes #384 #435 #206 #171 #168 .
2019-03-20 12:35:13 +00:00
Stanisław Chmiela
e697dff1d0
chore(format): Android project formatting ( #433 )
...
Added an extremely simple `.editorconfig` I inferred from the main part of the project, then reformatted the codebase according to it. 🙂
2019-03-19 14:42:47 +00:00
semantic-release-bot
0d3b1df2e3
chore(release): 5.3.1 [skip ci]
...
## [5.3.1](https://github.com/react-native-community/react-native-webview/compare/v5.3.0...v5.3.1 ) (2019-03-13)
### Bug Fixes
* **onShouldStartLoadWithRequest:** android event was missing fields ([#385 ](https://github.com/react-native-community/react-native-webview/issues/385 )) ([a25997b
](https://github.com/react-native-community/react-native-webview/commit/a25997b )), closes [/github.com/react-native-community/react-native-webview/blob/master/js/WebViewTypes.js#L34](https://github.com//github.com/react-native-community/react-native-webview/blob/master/js/WebViewTypes.js/issues/L34 )
2019-03-13 15:23:14 +00:00
Stanislav Shakirov
a25997bf65
fix(onShouldStartLoadWithRequest): android event was missing fields ( #385 )
...
`onShouldStartLoadWithRequest` event had only `url` in payload on android.
I've fixed it according to js event definition.
https://github.com/react-native-community/react-native-webview/blob/master/js/WebViewTypes.js#L34
2019-03-13 16:21:25 +01:00
semantic-release-bot
455e22e3b3
chore(release): 5.3.0 [skip ci]
...
# [5.3.0](https://github.com/react-native-community/react-native-webview/compare/v5.2.5...v5.3.0 ) (2019-03-07)
### Features
* **WKWebView:** add prop `directionalLockEnabled` for iOS ([#389 ](https://github.com/react-native-community/react-native-webview/issues/389 )) ([08cc600
](https://github.com/react-native-community/react-native-webview/commit/08cc600 ))
2019-03-07 09:29:19 +00:00
allcontributors[bot]
4cbfc81195
chore(docs): add CubeSugar as a contributor ( #400 )
...
* docs: update README.md
* docs: update .all-contributorsrc
2019-03-07 10:27:45 +01:00
Jian Wei
08cc600eb8
feat(WKWebView): add prop `directionalLockEnabled` for iOS ( #389 )
2019-03-07 10:27:29 +01:00
semantic-release-bot
83f13c4ba3
chore(release): 5.2.5 [skip ci]
...
## [5.2.5](https://github.com/react-native-community/react-native-webview/compare/v5.2.4...v5.2.5 ) (2019-03-07)
### Bug Fixes
* **types:** add showScrollIndicator prop to type file ([#388 ](https://github.com/react-native-community/react-native-webview/issues/388 )) ([a364d3e
](https://github.com/react-native-community/react-native-webview/commit/a364d3e ))
* **vulnerability:** merge issue ([#399 ](https://github.com/react-native-community/react-native-webview/issues/399 )) ([74a2086
](https://github.com/react-native-community/react-native-webview/commit/74a2086 ))
2019-03-07 09:16:08 +00:00
Jian Wei
a364d3ed67
fix(types): add showScrollIndicator prop to type file ( #388 )
2019-03-07 10:14:37 +01:00
Ryan Linton
51cced8c65
chore(docs): Add typescript definition for isFileUploadSupported ( #393 )
2019-03-07 10:14:09 +01:00
Andrei Pfeiffer
ff32e34eb5
chore(docs): Add multiple file upload selection in the docs ( #382 )
2019-03-07 10:13:22 +01:00
Thibault Malbranche
74a20865b0
fix(vulnerability): merge issue ( #399 )
...
https://nvd.nist.gov/vuln/detail/CVE-2018-16469
2019-03-07 10:12:35 +01:00
Stanislav Shakirov
67eacd549e
chore(ci): fix flow error and update TS type ( #395 )
...
set related versions of react and react-native in devDependencies
2019-03-07 09:49:43 +01:00
Jamon Holmgren
2260690810
chore(docs): Added guides for communication between React Native and web pages ( #377 )
...
* Added guides for communication between React Native and web pages
* Updated Guide a bit
2019-03-03 01:32:42 +01:00
semantic-release-bot
5e31885653
chore(release): 5.2.4 [skip ci]
...
## [5.2.4](https://github.com/react-native-community/react-native-webview/compare/v5.2.3...v5.2.4 ) (2019-03-01)
### Bug Fixes
* **WKWebView Scrolling:** fixed broken scroll ([#372 ](https://github.com/react-native-community/react-native-webview/issues/372 )) ([2cef5cb
](https://github.com/react-native-community/react-native-webview/commit/2cef5cb )), closes [#371 ](https://github.com/react-native-community/react-native-webview/issues/371 )
2019-03-01 09:48:47 +00:00
Thibault Malbranche
2cef5cbb3f
fix(WKWebView Scrolling): fixed broken scroll ( #372 )
...
fixes #371
2019-03-01 10:46:53 +01:00
Adithya Reddy
211ae18971
chore(readme): Add getting started doc link ( #370 )
...
The link was missing in the README for the getting started page, the square brackets were there though so looks like whoever wrote it just forgot to put the link there.
2019-03-01 08:53:37 +01:00
Malcolm Scruggs
34b98de0bd
chore(docs): Add API Examples in reference documentation ( #329 )
...
* Add reference examples for:
- onError
- onNavigationStateChange
- originWhiteList
- renderError
- renderLoading
- onShouldStartLoadWithRequest
* Update to use jsx as code
Add properties of objects passed into methods
* Add examples for:
- onLoad
- onLoadEnd
- onLoadStart
- onLoadProgress
- style
* Add object descriptions, fix style issues, and remove onShouldStartLoad example
Object Descriptions for:
- onLoad
- onLoadEnd
- onLoadStart
- onLoadProgress
* Update Reference.md
2019-03-01 01:36:56 +01:00
Jamon Holmgren
d28071cf52
chore(docs): Adds example for onShouldStartLoadWithRequest ( #321 )
...
Per #320 , this adds an example for onShouldStartLoadWithRequest.
2019-03-01 01:27:17 +01:00
Jamon Holmgren
4ad7036733
chore(docs): Adds guide for handling navigation state changes ( #144 )
...
* Adds guide for handling navigation state changes
* Update Guide.md
2019-03-01 01:21:01 +01:00
Thibault Malbranche
2843237e07
chore(docs): Updated readme.md ( #368 )
...
* chore(docs): Updated readme.md
* Update README.md
* Update README.md
2019-03-01 01:18:58 +01:00
Thibault Malbranche
b150f987ea
Update Getting-Started.md
2019-03-01 00:26:28 +01:00
semantic-release-bot
440e7c8527
chore(release): 5.2.3 [skip ci]
...
## [5.2.3](https://github.com/react-native-community/react-native-webview/compare/v5.2.2...v5.2.3 ) (2019-02-28)
### Bug Fixes
* **Android <input />:** Support file extensions in file input accept attributes ([#357 ](https://github.com/react-native-community/react-native-webview/issues/357 )) ([803a3b0
](https://github.com/react-native-community/react-native-webview/commit/803a3b0 ))
2019-02-28 21:14:14 +00:00
Ryan Linton
803a3b095b
fix(Android <input />): Support file extensions in file input accept attributes ( #357 )
...
The current implementation doesn't support a list of file extensions in the accept attribute (e.g. `<input type="file" accept=".jpg, .png">`) while that is a valid value per the HTML spec. I've updated the implementation to convert any file extensions to mime types before we set the type(s) on the intent to rectify the issue. In addition I've updated the `acceptsImages` and `acceptsVideo` methods to handle file extensions as well.
2019-02-28 22:12:27 +01:00
Andrei Pfeiffer
8217cb5503
chore(docs): Update Reference.md ( #359 )
...
I was able to fix a bug with videos loaded from Azure that wouldn't start unless I set that prop to `false`
2019-02-28 22:10:47 +01:00
semantic-release-bot
7dc875e056
chore(release): 5.2.2 [skip ci]
...
## [5.2.2](https://github.com/react-native-community/react-native-webview/compare/v5.2.1...v5.2.2 ) (2019-02-28)
### Bug Fixes
* **android:scalesPageToFit:** scalesPageToFit does not work as intended , especially for large jpg and png images. ([#275 ](https://github.com/react-native-community/react-native-webview/issues/275 )) ([a661df1
](https://github.com/react-native-community/react-native-webview/commit/a661df1 )), closes [#113 ](https://github.com/react-native-community/react-native-webview/issues/113 )
* **WKWebview Scroll:** Don't allow the scrollView to scroll when `scrollEnabled={false}`. ([#158 ](https://github.com/react-native-community/react-native-webview/issues/158 )) ([0e6e92a
](https://github.com/react-native-community/react-native-webview/commit/0e6e92a ))
2019-02-28 21:04:32 +00:00
Benjos Antony
a661df1ffc
fix(android:scalesPageToFit): scalesPageToFit does not work as intended , especially for large jpg and png images. ( #275 )
...
fixes #113
- One can verify that this for jpg images loaded on the webview (eg: https://www.ecda.gov.sg/growatbeanstalk/PublishingImages/READ%20Publications%20and%20Research/Parent%20Infographic%20Series/Infographic%204.jpg )
- This is a replication of the pull request that was originally made in the react-native repo (https://github.com/facebook/react-native/pull/17195 ), but was not merged in due to no reviews.
2019-02-28 22:02:44 +01:00
Chet Corcos
0e6e92a7f1
fix(WKWebview Scroll): Don't allow the scrollView to scroll when `scrollEnabled={false}`. ( #158 )
...
* Don't allow the scrollview to scroll the WebView body.
* Readme comment
* Remove duplicate protocol def
2019-02-28 22:01:42 +01:00
allcontributors[bot]
bef06e63f7
chore(docs): add jeluard as a contributor ( #348 )
...
Adds @jeluard as a contributor for doc.
This was requested by Titozzz [in this comment](https://github.com/react-native-community/react-native-webview/pull/347#issuecomment-463999246 )
2019-02-15 11:57:41 +01:00
Julien Eluard
b1cbf077e0
chore(docs): Custom Android: Reflect migration to react-native-webview project ( #347 )
...
Doc is now up-to-date with latest `react-native-webview` changes
2019-02-15 11:56:55 +01:00
semantic-release-bot
3b85a07d68
chore(release): 5.2.1 [skip ci]
...
## [5.2.1](https://github.com/react-native-community/react-native-webview/compare/v5.2.0...v5.2.1 ) (2019-02-14)
### Bug Fixes
* **WKWebView:** resolved crash with WebKit on iOS 9.x. ([#342 ](https://github.com/react-native-community/react-native-webview/issues/342 )) ([f27f13e
](https://github.com/react-native-community/react-native-webview/commit/f27f13e )), closes [#150 ](https://github.com/react-native-community/react-native-webview/issues/150 ) [#213 ](https://github.com/react-native-community/react-native-webview/issues/213 ) [jerolimov/react-native-webview#fix-ios9](https://github.com/jerolimov/react-native-webview/issues/fix-ios9 ) [jerolimov/react-native-webview#fix-ios9](https://github.com/jerolimov/react-native-webview/issues/fix-ios9 )
2019-02-14 14:19:47 +00:00
Christoph Jerolimov
f27f13e931
fix(WKWebView): resolved crash with WebKit on iOS 9.x. ( #342 )
...
This PR fixes two crashes when enableWebKit is true (which was the default) on iOS 9.x. The first one when the WebView component was mounted (fixes issue #150 ) and the second one, when the component was unmounted (fixes issue #213 ).
The first problem happen when the RNCWKWebView.m was loaded:
The programming guide for WebKit (version 2006) ([pdf](http://mirror.informatimago.com/next/developer.apple.com/documentation/Cocoa/Conceptual/DisplayWebContent/WebKit_DisplayWebContent.pdf )) from Apple said, that it is (was) required to check if the 'new' WebKit Framework was available. This was required when the WebKit framework was only available on Mac OS X (10.2) when the Safari was installed. 😆
Because WebKit is (currently..) a fix part of iOS we didn't need this check this anymore to determinate if WebKit is available. I also see no other reference that this is required in iOS so I just remove this code. Without this code the WebView works also on iOS 9.x.
The second issue happen when the WKWebView was removed from the native view hierarchy. Its required (only on iOS 9) to remove the UIScrollView delegate before cleaning up the webview.
Its possible to try this PR with:
```
npm install --save "react-native-webview@jerolimov/react-native-webview#fix-ios9-crash"
# or
yarn add "react-native-webview@jerolimov/react-native-webview#fix-ios9-crash"
```
If you use CocoaPods, you should also update your Pods with
```
cd ios && pod update && cd ..
```
2019-02-14 15:18:15 +01:00
semantic-release-bot
833d4d6c62
chore(release): 5.2.0 [skip ci]
...
# [5.2.0](https://github.com/react-native-community/react-native-webview/compare/v5.1.0...v5.2.0 ) (2019-02-12)
### Features
* **toggle scroll bar:** added new props showsVerticalScrollIndicator / showsHorizontalScrollIndicator ([#250 ](https://github.com/react-native-community/react-native-webview/issues/250 )) ([92c2058
](https://github.com/react-native-community/react-native-webview/commit/92c2058 ))
2019-02-12 13:48:58 +00:00
Jordan Sexton
92c20581ae
feat(toggle scroll bar): added new props showsVerticalScrollIndicator / showsHorizontalScrollIndicator ( #250 )
2019-02-12 14:47:24 +01:00
allcontributors[bot]
405421dece
chore(docs): add marconett as a contributor ( #338 )
...
* docs: update README.md
* docs: update .all-contributorsrc
2019-02-12 14:39:34 +01:00
Marco
4947358a0a
chore(readme): update in regards to #101 ( #336 )
2019-02-12 14:18:39 +01:00
semantic-release-bot
0761f6f105
chore(release): 5.1.0 [skip ci]
...
# [5.1.0](https://github.com/react-native-community/react-native-webview/compare/v5.0.8...v5.1.0 ) (2019-02-12)
### Features
* **wkwebview:** create api to allow clients to present a client credential for authentication ([#141 ](https://github.com/react-native-community/react-native-webview/issues/141 )) ([fc5fd24
](https://github.com/react-native-community/react-native-webview/commit/fc5fd24 ))
2019-02-12 09:37:15 +00:00
Maosen Jason Hu
fc5fd242e2
feat(wkwebview): create api to allow clients to present a client credential for authentication ( #141 )
...
* In order for TLS Mutual Auth to work for webviews, the caller must present a credential. Expose a setter that can be called to set a credential.
2019-02-12 10:35:14 +01:00
semantic-release-bot
f0e36338ab
chore(release): 5.0.8 [skip ci]
...
## [5.0.8](https://github.com/react-native-community/react-native-webview/compare/v5.0.7...v5.0.8 ) (2019-02-11)
### Bug Fixes
* **types:** Add new cacheEnabled prop to typescript prop type declarations ([#335 ](https://github.com/react-native-community/react-native-webview/issues/335 )) ([ff62c95
](https://github.com/react-native-community/react-native-webview/commit/ff62c95 ))
2019-02-11 21:53:21 +00:00
Thea Lanherne
ff62c956e3
fix(types): Add new cacheEnabled prop to typescript prop type declarations ( #335 )
2019-02-11 22:51:44 +01:00
Momazo7u7
80efc3155c
chore(docs): Deleted onShouldStartLoadWithRequest platform reference ( #317 )
...
* Deleted onShouldStartLoadWithRequest platform reference
according to b1b662628e
it's supported on android and Ios so no platfor reference is needed
* Deleted onShouldStartLoadWithRequest platform reference
Now with added note
2019-02-08 12:31:17 +01:00