V2 add additional ios options for tabbar icons (#3296)
* add option to disable tabbar icon tints and add custom selected icons
* update docs for disabling tabbar icon tint and selectedIcon
* move new options to ios-specific section in docs
* delete trailing comma in docs
[v2][ios11, ios12] Add searchBar option for topBar (#3303)
* [ios11+] Add searchBar option for topBar
* Fix formatting and linter issues
* Add docs about topBar.searchBar
* Fix missing semicolons
* Revert prettier changes
* Add js tests for onSearchBarUpdated to achieve 100% coverage
* Mark searchBar test as :ios: specific
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();
}
};
}
```
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
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.
* 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