Daniel Zlotin
2f4ede0bde
Merge branch 'v2' of https://github.com/wix/react-native-navigation into v2
6 gadus atpakaļ
Daniel Zlotin
0a87f8bb05
constants initialized lazily, js testing support
6 gadus atpakaļ
Guy Carmeli
164729ae01
Add e2e for pushing screens from side menu
6 gadus atpakaļ
Guy Carmeli
8bc56e304d
Remove lock file and lock RN version to 0.51.1
6 gadus atpakaļ
Rodrigo Bermúdez Schettino
52d9690c22
Remove broken link in README (#3300 )
6 gadus atpakaļ
Guy Carmeli
f0225113f8
Mount all children when creating BottomTabs layout
When selected tab changes - change visibility instead of adding and removing views from hierarchy
6 gadus atpakaļ
Guy Carmeli
e1d28d61ae
Use linearInterpolator as default interpolator for command animations
6 gadus atpakaļ
Guy Carmeli
d794bd7fef
Document Options.animations
6 gadus atpakaļ
Ioannis Kokkinidis
7a0bc3f8bd
Exposed getUiImplementationProvider for people to override if needed (#3295 )
6 gadus atpakaļ
Guy Carmeli
4c8d48b1b5
Implement a synchronous UiImplementation
Related to #2892
To use it, Override `createReactNativeHost` in MainApplication as follows:
```java
@Override
protected ReactNativeHost createReactNativeHost() {
return new NavigationReactNativeHost(this) {
@Override
protected UIImplementationProvider getUIImplementationProvider() {
return new SyncUiImplementation.Provider();
}
};
}
```
6 gadus atpakaļ
Guy Carmeli
b984d00fb9
Clean up docs a bit
6 gadus atpakaļ
Guy Carmeli
2f5185bdde
Implement TopBar.elevation option
This commit also changes the way TopBar background color is applied.
Instead of applying it to the TitleBar, it's applied to the entire TopBar layout
6 gadus atpakaļ
Rodrigo Bermúdez Schettino
4c76331757
Fix screenshots links to React Native's docs (#3302 )
The links were pointing to the wrong documentation sections.
6 gadus atpakaļ
Guy Carmeli
aca8b49df4
Implement BottomTabs.titleDisplayMode styling option
This option allows to control when tab titles are displayed
* showWhenActive: when a tab is focused
* alwaysShow: show regardless of which tab is in
* alwaysHide: never show tab titles
6 gadus atpakaļ
Guy Carmeli
b2a8ac41e5
Support topTabs.height style option
This commit also changes the way TopTabs options are handled. As the TabLayout
is part of the TopBar, it's the StackControllers responsibility to set TopTabs options.
6 gadus atpakaļ
Guy Carmeli
53126504d0
Fix wrong title declaration in TopTabs screen
6 gadus atpakaļ
Guy Carmeli
b9b699c986
Move options.topTabs to correct node
6 gadus atpakaļ
Guy Carmeli
093347c04b
Fix TopTabs selected and unselected colors
6 gadus atpakaļ
Guy Carmeli
9dd0c2e3aa
Additional work addressing flaky e2e
6 gadus atpakaļ
Guy Carmeli
667fa5a188
Enable `unmounts when dismissed` e2e
Hopefully increasing button size will eliminate flakyness
6 gadus atpakaļ
Guy Carmeli
ab49d49111
Suppress visibility warning for NavigationReactNativeHost ctor
6 gadus atpakaļ
Birkir Rafn Guðjónsson
7c422f7fa1
[v2] Preview peek and pop (iOS) (#3273 )
* V2: Peek and pop
* Add event when preview is dismissed in non commit mode
* tslint
* Refactor playground. Document preview api
* Added width prop
* Implement hybrid push/preview button
* Fixing small linting errors
6 gadus atpakaļ
Guy Carmeli
70bdb2b780
support config
6 gadus atpakaļ
Shalom Yerushalmy
f5df828e1b
Testing new multi pr job (#3287 )
* Testing new multi pr job
* Disable unmounts when dismissed
6 gadus atpakaļ
Guy Carmeli
fefd96f7e8
InterceptTouchOutside only when requested explicitly by the user
This works around an issue with RN's view reconciliation when the
root component has no background color defined.
6 gadus atpakaļ
Guy Carmeli
3f5ef419b7
update docs
6 gadus atpakaļ
Guy Carmeli
7653a17335
Updated TopBar buttons doc page
6 gadus atpakaļ
Guy Carmeli
8fbb82391d
Push stale config
6 gadus atpakaļ
Shalom Yerushalmy
06275eb229
Change Android device to Pixel_2_API_26
6 gadus atpakaļ
Guy Carmeli
fa0a23c95b
Fix crash when pushing into a stack located in BottomTabs
6 gadus atpakaļ
Guy Carmeli
c9d776e2af
Update docs
6 gadus atpakaļ
yogevbd
f822fac935
Implement layout options
6 gadus atpakaļ
Guy Carmeli
19b657b218
Update layout types docs
6 gadus atpakaļ
Guy Carmeli
94bf489274
Document borderColor and borderHeight
6 gadus atpakaļ
Guy Carmeli
1b8e762d1d
Implement topBar.borderColor and topBar.borderHeight
6 gadus atpakaļ
Guy Carmeli
c57fcf2c79
Implement layout.topMargin
This option property lets us set a top margin to a component which can be useful sometimes
when using statusBar.drawBehind.
6 gadus atpakaļ
Guy Carmeli
7fca939187
Fix markdown syntax in events.md
6 gadus atpakaļ
Guy Carmeli
ef557cf540
Fix tests and compilation error after removing screenBackgroundColor
6 gadus atpakaļ
Guy Carmeli
6a3df31009
Expose statusBarHeight in Navigation.constants
6 gadus atpakaļ
Guy Carmeli
722698072b
Remove screenBackgroundColor from Options.java
6 gadus atpakaļ
Guy Carmeli
e171d7abc4
[Breaking] Consolidate screenBackgroundColor and orientation to layout node
screenBackgroundColor was also renamed to backgroundColor
```js
layout: {
orientation: 'landscape',
backgroundColor: 'red'
}
```
6 gadus atpakaļ
Birkir Rafn Guðjónsson
07376e9e29
[v2] UISplitViewController (#3247 )
* Work in progress
* Arbitary changes
* Improvements on API
* Cleanup RNNSplitViewController, allow mergeOptions
* Added documentation and better playground example
* Adding tests for coverage
* Find out why this test is failing.
* Only show split view on iOS
* Add test back in
6 gadus atpakaļ
Guy Carmeli
a7391bb664
Dismiss system alerts in playground app
Hopefully, this will prevent Detox from timing out when a system alert pops up on the screen.
6 gadus atpakaļ
Guy Carmeli
604a3e2a2a
Document topBar.height and title.height style option
6 gadus atpakaļ
Guy Carmeli
95416d2adc
Add disabled height option top OptionScreen
6 gadus atpakaļ
Guy Carmeli
0b7edc2e81
Fix unit tests
6 gadus atpakaļ
Guy Carmeli
4df7426fd1
Implement topBar.height and title.height
This commit add support for changing the TopBar height as well as changing
the height of custom component used as background
6 gadus atpakaļ
Guy Carmeli
dda3f95ede
Fix documentation, Renamed statusBar hidden to visible
6 gadus atpakaļ
Guy Carmeli
4202f8643d
Add previous controller to screen only when dismissing top modal
6 gadus atpakaļ
Guy Carmeli
126f31c2fb
Implement statusBar drawBehind and visible option
6 gadus atpakaļ