You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+22-7Lines changed: 22 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -22,14 +22,28 @@ in case of vulnerabilities.
22
22
23
23
## [Unreleased]
24
24
25
+
## [3.5.0] - 2020-10-16
26
+
27
+
### Added
28
+
- Added `hasBackButton` option to sets a back arrow instead of the default X icon to close the custom tab by [@aitorct](https://github.com/aitorct) ([#109](https://github.com/proyecto26/react-native-inappbrowser/pull/109)).
29
+
- Added default browser configuration for custom tab if any by [@thuongtv-vn](https://github.com/thuongtv-vn) ([#177](https://github.com/proyecto26/react-native-inappbrowser/pull/177)).
30
+
- Added `browserPackage` option to use a Package name of a browser to be used to handle Custom Tabs.
31
+
- Added `showInRecents` option to determine whether browsed website should be shown as separate entry in Android recents/multitasking view.
32
+
33
+
### Fixed
34
+
- Android `isAvailable` method checks **Custom Tab** support by [@aitorct](https://github.com/aitorct) ([#108](https://github.com/proyecto26/react-native-inappbrowser/pull/108)).
35
+
- Added a null check for `redirectResolve` in `safariViewControllerDidFinish` by [@ssuchanowski](https://github.com/ssuchanowski) ([#160](https://github.com/proyecto26/react-native-inappbrowser/pull/160)).
36
+
- Fixed **README** updating `modalPresentationStyle` to **fullscreen** by [@Thomazella](https://github.com/Thomazella) ([#161](https://github.com/proyecto26/react-native-inappbrowser/pull/161)).
37
+
- Fixed `AppStateActiveOnce` event listener by [@logangouget](https://github.com/logangouget) ([#179](https://github.com/proyecto26/react-native-inappbrowser/pull/179)).
38
+
25
39
## [3.4.0] - 2020-04-08
26
40
27
41
### Added
28
42
- Added `ephemeralWebSession` option to supports `ephemeralWebBrowserSession` on iOS 13 by [@avenner](https://github.com/avenner) ([#141](https://github.com/proyecto26/react-native-inappbrowser/pull/141)).
29
-
-Add`@ReactModule` annotation by [@janicduplessis](https://github.com/janicduplessis) ([#94](https://github.com/proyecto26/react-native-inappbrowser/pull/94)).
43
+
-Added`@ReactModule` annotation by [@janicduplessis](https://github.com/janicduplessis) ([#94](https://github.com/proyecto26/react-native-inappbrowser/pull/94)).
30
44
31
45
### Fixed
32
-
-Remove listener of `openAuth` when `closeAuth` is called.
46
+
-Removed listener of `openAuth` when `closeAuth` is called.
33
47
34
48
## [3.3.4] - 2020-01-07
35
49
@@ -39,7 +53,7 @@ in case of vulnerabilities.
39
53
## [3.3.3] - 2019-11-25
40
54
41
55
### Fixed
42
-
-Remove build warnings with **iOS** 13 using [Pragmas](https://clang.llvm.org/docs/UsersManual.html#controlling-diagnostics-via-pragmas).
56
+
-Removed build warnings with **iOS** 13 using [Pragmas](https://clang.llvm.org/docs/UsersManual.html#controlling-diagnostics-via-pragmas).
43
57
44
58
## [3.3.2] - 2019-11-15
45
59
@@ -91,7 +105,7 @@ in case of vulnerabilities.
91
105
- Activating Open Collective ([#80](https://github.com/proyecto26/react-native-inappbrowser/pull/80)) and Create **CONTRIBUTING.md** to see how to contribute.
92
106
- Added `animated`, `modalPresentationStyle` and `modalTransitionStyle` properties for iOS options ([86f7238](https://github.com/proyecto26/react-native-inappbrowser/commit/86f7238d8eb856b28fae9981ca7bb42b12c43e18)).
93
107
- Present the **SafariViewController** modally or as push instead using the `modalEnabled` property ([4a0d57c](https://github.com/proyecto26/react-native-inappbrowser/commit/4a0d57c73eccaaf45a212853c50aa41520b550c8)).
94
-
-Add workaround to dismiss **SafariViewController** without animation.
108
+
-Added workaround to dismiss **SafariViewController** without animation.
95
109
96
110
### Removed
97
111
-**com.facebook.infer.annotation** dependency is not required anymore to build for **Android** ([dcbfaef](https://github.com/proyecto26/react-native-inappbrowser/commit/dcbfaef49fa04fdabc281cd2c61124a11c6a7d29#diff-7ae5a9093507568eabbf35c3b0665732)).
@@ -115,7 +129,7 @@ in case of vulnerabilities.
115
129
- README now contains the different options to open the browser.
116
130
117
131
### Fixed
118
-
-Add`customTabsIntent.startAnimationBundle` when the `ChromeTabsManagerActivity` intent is created to fix **Android** animations by [@miktolon](https://github.com/miktolon) ([3f0cb35](https://github.com/proyecto26/react-native-inappbrowser/commit/3f0cb356733832a4578ebf1cb45377aa0d8d2806)).
132
+
-Added`customTabsIntent.startAnimationBundle` when the `ChromeTabsManagerActivity` intent is created to fix **Android** animations by [@miktolon](https://github.com/miktolon) ([3f0cb35](https://github.com/proyecto26/react-native-inappbrowser/commit/3f0cb356733832a4578ebf1cb45377aa0d8d2806)).
119
133
120
134
### Changed
121
135
- Using **Android**`AssertionError` instead of use `Assertion` lib of Facebook by [@SnaiNeR](https://github.com/SnaiNeR) ([e9a54d3](https://github.com/proyecto26/react-native-inappbrowser/commit/e9a54d3fe759380f992aa1ed7fbcf5d1299a7d73)).
@@ -146,15 +160,16 @@ Missing tags for previous versions 🤷♂
146
160
- Include **supportLibVersion** definition to avoid collisions by [@maestor](https://github.com/maestor) ([332ceef](https://github.com/proyecto26/react-native-inappbrowser/commit/332ceefeba4e729237412954b8b941654263bfbd)).
147
161
- Fix the repository URL for podspec file by [@adammcarth](https://github.com/adammcarth) ([7e4038c](https://github.com/proyecto26/react-native-inappbrowser/commit/7e4038c19a7e1a44ab01e9dcd762709ab854eb85)).
148
162
- Provide example how to restore old status bar style by [@MrLoh](https://github.com/MrLoh) ([8cb9e75](https://github.com/proyecto26/react-native-inappbrowser/commit/8cb9e7535a3edb0d9919eab7813bf5f136f455ff)).
149
-
-Add`com.facebook.infer.annotation` dependecy to fix build error by [Artem Emelyanov](mailto:[email protected]) ([80ff313](https://github.com/proyecto26/react-native-inappbrowser/commit/80ff313c36911d4d82d2885ad8424d7f0f72de29)).
163
+
-Added`com.facebook.infer.annotation` dependecy to fix build error by [Artem Emelyanov](mailto:[email protected]) ([80ff313](https://github.com/proyecto26/react-native-inappbrowser/commit/80ff313c36911d4d82d2885ad8424d7f0f72de29)).
150
164
- Clear `mOpenBrowserPromise` after sending a cancel by [@rbscott](https://github.com/rbscott) ([d9cc2a3](https://github.com/proyecto26/react-native-inappbrowser/commit/d9cc2a3183f84790deb22bf01f4f7658d67bc8ca)).
151
165
- Fix README to import native package in `MainApplication` instead of `MainActivity` by [@mammad2c](https://github.com/mammad2c) ([ce3f5a9](https://github.com/proyecto26/react-native-inappbrowser/commit/ce3f5a93812a1a2dd7293092bb4a2972f4943268)).
152
166
- Update the `isAvailable` method to return a boolean instead by [@kikketer](https://github.com/kikketer) ([1d75810](https://github.com/proyecto26/react-native-inappbrowser/commit/1d75810881cc6fd5a6913fbef986f897d366cdb9)).
153
167
- Fix **TypeScript** typings by [@petekp](https://github.com/petekp) ([e0e99a5](https://github.com/proyecto26/react-native-inappbrowser/commit/e0e99a523d9a2df99263ffbed3f2738afd05b46b)).
154
168
- Fix `EventBusException` on **Android** by [@Almouro](https://github.com/Almouro) ([9cf4cbb](https://github.com/proyecto26/react-native-inappbrowser/commit/9cf4cbb58d55c8b534dabac6791e6a2a5428253f)).
Copy file name to clipboardExpand all lines: README.md
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@
26
26
</p>
27
27
28
28
<h1align="center">InAppBrowser for React Native</h1>
29
+
<h3align="center">Provides access to the system's web browser and supports handling redirects</h3>
29
30
<h4align="center"><ahref="https://developer.chrome.com/multidevice/android/customtabs#whatarethey">Chrome Custom Tabs</a> for Android & <ahref="https://developer.apple.com/documentation/safariservices">SafariServices</a>/<ahref="https://developer.apple.com/documentation/authenticationservices">AuthenticationServices</a> for iOS.</h4>
30
31
31
32
<palign="center">
@@ -150,20 +151,22 @@ Property | Description
150
151
Property | Description
151
152
-------------- | ------
152
153
`showTitle` (Boolean) | Sets whether the title should be shown in the custom tab. [`true`/`false`]
153
-
`hasBackButton` (Boolean) | Sets a back arrow instead of the default X icon to close the custom tab. [`true`/`false`]
154
154
`toolbarColor` (String) | Sets the toolbar color. [`gray`/`#808080`]
155
155
`secondaryToolbarColor` (String) | Sets the color of the secondary toolbar. [`white`/`#FFFFFF`]
156
156
`enableUrlBarHiding` (Boolean) | Enables the url bar to hide as the user scrolls down on the page. [`true`/`false`]
157
157
`enableDefaultShare` (Boolean) | Adds a default share item to the menu. [`true`/`false`]
158
158
`animations` (Object) | Sets the start and exit animations. [`{ startEnter, startExit, endEnter, endExit }`]
159
159
`headers` (Object) | The data are key/value pairs, they will be sent in the HTTP request headers for the provided url. [`{ 'Authorization': 'Bearer ...' }`]
160
160
`forceCloseOnRedirection` (Boolean) | Open Custom Tab in a new task to avoid issues redirecting back to app scheme. [`true`/`false`]
161
+
`hasBackButton` (Boolean) | Sets a back arrow instead of the default `X` icon to close the custom tab. [`true`/`false`]
162
+
`browserPackage` (String) | Package name of a browser to be used to handle Custom Tabs.
163
+
`showInRecents` (Boolean) | Determining whether browsed website should be shown as separate entry in Android recents/multitasking view. [`true`/`false`]
161
164
162
165
### Demo
163
166
164
167
```javascript
165
168
import { Linking } from 'react-native'
166
-
import InAppBrowser from 'react-native-inappbrowser-reborn'
169
+
import { InAppBrowser } from 'react-native-inappbrowser-reborn'
167
170
168
171
...
169
172
async openLink() {
@@ -178,7 +181,7 @@ import InAppBrowser from 'react-native-inappbrowser-reborn'
178
181
readerMode: false,
179
182
animated: true,
180
183
modalPresentationStyle: 'fullScreen',
181
-
modalTransitionStyle: 'partialCurl',
184
+
modalTransitionStyle: 'coverVertical',
182
185
modalEnabled: true,
183
186
enableBarCollapsing: false,
184
187
// Android Properties
@@ -287,7 +290,7 @@ const Main = createStackNavigator(
0 commit comments