Commit Graph

154 Commits

Author SHA1 Message Date
osdnk
faff1138f7 Bump to 2.0.0-alpha.5 2.0.0-alpha.6 2.0.0-alpha.5 2019-10-21 11:38:02 +02:00
Janic Duplessis
b9473ccb04 Support fade in animation for modals on iOS (#186)
Supporting fade in for modals can be done by using `modalTransitionStyle = UIModalTransitionStyleCrossDissolve`. For other type of animations we leave this as the default value.

Tested via `@react-navigation/native-stack` with `{ animation: 'fade', presentation: 'transparentModal' }`
2019-10-21 11:35:52 +02:00
David
5cfe3f2814 Apply custom title font attributes to largeTitle (#183) 2019-10-21 09:03:43 +02:00
Janic Duplessis
c7f5fe6554 Fix RN version check when using master (#182) 2019-10-21 09:01:43 +02:00
Janic Duplessis
535902014d Fix non-default modal presentation styles (#185)
* Fix non-default modal presentation styles

Using alternative modal presentation styles like `transparentModal` is not working. This is because accessing `presentationController` before setting the `modalPresentationStyle` causes the presentation controller to be created and cannot be changed afterwards. This is documented https://developer.apple.com/documentation/uikit/uiviewcontroller/1621426-presentationcontroller?language=objc.

Yes very cool API

Tested via @react-navigation/native-stack using presentation: 'transparentModal'.

* Update RNSScreen.m
2019-10-21 09:01:02 +02:00
Krzysztof Magiera
4a9a3a877a Fix header rendering – layout and transparency (#184)
* Let UINavController control subcontroller view's frames.

This PR changes the way we've been handling yoga <> NavController layout interactions. Now we ignore frame updates coming from react for the main Screen view to allow NavController take the controll. In order to keep yoga working we now use `setSize` to pass the dimensions of the view back to yoga such that it can properly calculate layout of the views under Screen component.

* Header resizing fixes for Android.

In this change we use CoordinatorLayout as a stack screen container to handle rendering of toolbar and screen content. Thanks to this approach we can support collapsable bars in the future. Instead of relying on RN to layout screen container when renered under ScreenStack we rely on Android native layout to measure and position screen content and then use UIManager.setNodeSize to communicate that back to react.
2019-10-18 15:08:39 +02:00
Lorenzo Sciandra
c590283359 Enhancement: change to useScreens to enableScreens (#99)
This wants to be a small PR to improve the usability of the library, based on this conversation: https://twitter.com/grifotv/status/1127847192067215360.

Since the release of RNS there has been a new major player in the React game: hooks. And sadly `useScreens` recalls too closely Hooks, and this can lead to misunderstanding.

Changing it to `enableScreens` will make the difference clear, but at the same time it will be a BREAKING CHANGE for everyone using the lib.

So if we prefer to keep it around as useScreens I'm ok with it too, and we can close this.

Also, I did some tweaks to the README + fix some typos.
2019-10-11 21:57:48 +02:00
osdnk
77b1e14288 Bump -> 2.0.0-alpha.4 2.0.0-alpha.4 2019-10-11 13:00:25 +02:00
Krzysztof Magiera
cb710c63f7 Fix iOS Example project after upgrade to RN 61 (#179) 2019-10-10 21:08:36 +02:00
Krzysztof Magiera
2d54b76cb6 Update Example app to RN 0.61 (#177) 2019-10-09 11:05:37 +02:00
Satyajit Sahoo
f5477eb9e0 Remove usage of ScenesReducer (#174)
See #173
2019-10-09 09:42:25 +02:00
Michał Osadnik
b8dcda3f7a Call update bounds after transition (#175) 2019-10-09 09:25:20 +02:00
Krzysztof Magiera
7620c541da Fix header config when navigating back gets cancelled. (#171)
This change fixes the problem when header would update to the previous screen configuration as a result of starting swipe back gesture but never restore to the original one in case swipe back gets cancelled (e.g. user didn't swipe far enough). The problem was that as a result of swipe back we'd apply header config changes but after cancel there was no trigger to reset header to the previous state.
2019-10-03 11:56:29 +02:00
Krzysztof Magiera
a229904b57 Implement full screen modals on iOS (#170)
On iOS by default modals show up in full-screen mode. This behavior can be customized and instead of mouting new screens in top level window they can be mounted under a given UINavController. We used to be relying on that behavior (see "CurrentContext" presentation mode). This, apparently wasn't matching the default functionality of the OS. This change is adding it as a default and keeping the old way under newly exposed presentation modes: containedModal and containedTransparentModal

Thanks to this change, iOS 13 modals can work properly.
2019-10-03 11:54:49 +02:00
Brent Vatne
0bf6a2c6cc Merge pull request #165 from magicismight/patch-2
fix typo
2019-09-27 11:19:33 -07:00
Horcrux
8e71d75fe6 fix typo 2019-09-27 18:04:19 +08:00
Michel dos Santos Kuguio
5a9b3d1408 Fix deprecated items (#156)
* Fix deprecated items

Fix deprecated items

* fix deprecated items

fix deprecated items
2019-09-25 10:44:28 +02:00
Alain Hufkens
5281c1b553 Adds tvOS platform to the Podspec (#157)
* Add tvOS platform

* Correct Podspec
2019-09-25 10:43:58 +02:00
Krzysztof Magiera
c1540d395b Bump version -> 2.0.0-alpha3 2.0.0-alpha3 2.0.0-alpha.3 2019-09-09 15:14:56 +02:00
Krzysztof Magiera
6508386424 Fix issue with soft keyboard not showing from time to time on Android (#152) 2019-09-09 15:14:24 +02:00
dependabot[bot]
de9bfc3021 Bump extend from 3.0.1 to 3.0.2 (#143)
Bumps [extend](https://github.com/justmoon/node-extend) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/justmoon/node-extend/releases)
- [Changelog](https://github.com/justmoon/node-extend/blob/master/CHANGELOG.md)
- [Commits](https://github.com/justmoon/node-extend/compare/v3.0.1...v3.0.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-09 10:40:33 +02:00
dependabot[bot]
797a41cd54 Bump merge from 1.2.0 to 1.2.1 (#142)
Bumps [merge](https://github.com/yeikos/js.merge) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/yeikos/js.merge/releases)
- [Commits](https://github.com/yeikos/js.merge/compare/v1.2.0...v1.2.1)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-09 10:40:17 +02:00
dependabot[bot]
8567af05fe Bump mixin-deep from 1.3.1 to 1.3.2 (#146)
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-09 10:36:08 +02:00
dependabot[bot]
2c6e99223e Bump morgan from 1.9.0 to 1.9.1 (#145)
Bumps [morgan](https://github.com/expressjs/morgan) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/expressjs/morgan/releases)
- [Changelog](https://github.com/expressjs/morgan/blob/master/HISTORY.md)
- [Commits](https://github.com/expressjs/morgan/compare/1.9.0...1.9.1)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-09 10:35:54 +02:00
dependabot[bot]
fefe4a4fdc Bump react-dom from 16.4.1 to 16.4.2 (#140)
Bumps [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) from 16.4.1 to 16.4.2.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/v16.4.2/packages/react-dom)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-09 10:35:34 +02:00
dependabot[bot]
171eb42b62 Bump lodash from 4.17.10 to 4.17.15 (#133)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.10 to 4.17.15.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.10...4.17.15)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-09 10:35:23 +02:00
dependabot[bot]
bf7db1d348 Bump handlebars from 4.0.12 to 4.2.0 in /Example (#147)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.0.12 to 4.2.0.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.0.12...v4.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-09 10:35:15 +02:00
dependabot[bot]
034fbb3f12 Bump js-yaml from 3.12.0 to 3.13.1 (#108)
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.12.0 to 3.13.1.
- [Release notes](https://github.com/nodeca/js-yaml/releases)
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.12.0...3.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-09 10:34:47 +02:00
dependabot[bot]
cf2bf00b23 Bump handlebars from 4.0.11 to 4.1.2 (#110)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.0.11 to 4.1.2.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.0.11...v4.1.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-09 10:34:31 +02:00
dependabot[bot]
8c8b52cd4e Bump js-yaml from 3.12.0 to 3.13.1 in /Example (#107)
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.12.0 to 3.13.1.
- [Release notes](https://github.com/nodeca/js-yaml/releases)
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.12.0...3.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-09 10:34:02 +02:00
dependabot[bot]
6de1282412 Bump mixin-deep from 1.3.1 to 1.3.2 in /Example (#144)
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-09 10:33:51 +02:00
dependabot[bot]
db725d4cce Bump lodash from 4.17.11 to 4.17.15 in /Example (#148)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.15.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.15)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-09 10:33:39 +02:00
dependabot[bot]
e42f8da979 Bump merge from 1.2.0 to 1.2.1 in /Example (#141)
Bumps [merge](https://github.com/yeikos/js.merge) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/yeikos/js.merge/releases)
- [Commits](https://github.com/yeikos/js.merge/compare/v1.2.0...v1.2.1)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-09 10:33:23 +02:00
Horcrux
ad14bf417a fix project.pbxproj (#150) 2019-09-09 10:32:56 +02:00
Krzysztof Magiera
827116725a Bump version -> 2.0.0-alpha2 2019-09-09 10:32:00 +02:00
Krzysztof Magiera
f8a104a698 Fix iOS back gesture handling (header config & touches) 2019-09-09 10:31:15 +02:00
Brent Vatne
4e57b61d2c Merge pull request #149 from todorone/patch-1
Fix README typo
2019-09-05 11:10:06 -07:00
Fedir Ushakov
bf23bf6ce6 Fix typo 2019-09-05 19:27:19 +03:00
Krzysztof Magiera
7084d140ee Bump version -> 2.0.0-alpha1 2019-09-05 16:55:38 +02:00
Krzysztof Magiera
a9fbe70892 README updates 2019-09-05 16:55:15 +02:00
Krzysztof Magiera
80a466970e Navigation stack native primitives (#139)
Adds support for stack navigation primitives (UINavigationViewController and Android fragment container with back button support)
2019-09-05 13:55:14 +02:00
Radek Pietruszewski
4c2aded426 [trivial] Update README.md - ReactFragmentActivity (#131) 2019-07-18 22:47:45 +02:00
Brent Vatne
df03cd9829 Merge pull request #132 from mitulsavani/patch-1
Fixed typo
2019-07-18 11:07:28 -07:00
Mitul Savani
43b2d7a92d Fixed typo 2019-07-17 12:35:33 -04:00
Krzysztof Magiera
ada582f3e3 Bump version -> alpha.23 1.0.0-alpha.23 2019-07-05 21:23:55 +02:00
Satyajit Sahoo
c1cbf77097 Add lazy requiring screens components (#117)
* Add lazy requiring screens components

* Fix naming

* Lazily initialize AnimatedNativeScreen
2019-07-04 12:44:32 +02:00
Michał Osadnik
b042571315 Add lazy requiring screens components (#115)
* Add lazy requiring screens components

* Fix naming
2019-07-04 12:41:00 +02:00
bpeyrou
ed826d7b91 Upgrade from android support v4 to androidX (#68) 2019-07-04 10:57:58 +02:00
Radek Pietruszewski
0627e742c8 [trivial] fix link (#118) 2019-07-04 10:57:18 +02:00
Satyajit Sahoo
acf80e640c Fix type of active prop in typescript definitions (#97)
The TS definitions specify the prop as a boolean, but passing a boolean causes a crash.
2019-05-13 14:40:47 +02:00