[V2] Disable gesture capture when sideMenu is disabled #3651 (#3898)
By default, gestures are captures when you layout a sideMenu, regardless of whether you disable the sideMenu. This is problematic when you want to push a screen and have the swipe back gesture pop the newly pushed screen, instead of opening the drawer.
This PR simply disabled gestures when the sideMenu is disabled, and enables when the sideMenu is enabled. It resolves #3651
* Refactor peek and pop
* Rollback some XCode stuff
* Added tests for touchablePreview event
* Also fixing searchbarcancelpressed event
* Making sure tests work
Fix order of `registerComponentWithRedux` arguments (#3933)
The actual `registerComponentWithRedux` function definition is the following:
```
registerComponentWithRedux(componentName, getComponentClassFunc, ReduxProvider, reduxStore) {
return this.componentRegistry.registerComponent(componentName, getComponentClassFunc, ReduxProvider, reduxStore);
}
```
Note the order of `store` and `provider` are the opposite as shown in the original documentation. This will fix it, but it's worth mentioning that v1 has the order shown in the original documentation, so it would be nice to keep the parameter order the same in v2.
[v2] (restore) Typings for styling options and layouts (#3931)
* Added all styling options and WIP comments
* Completed screen options and layout types
* Added typings to the main entrypoint
* Added buttons too
* Optional fields
* Fixes js unit tests
Remove support from popping specific screens in a stack
While arguable being convenient, this is behaviour goes against the Stack api.
Some commands, such as push and pop, can be applied on stacks by passing the
stack's componentId.
This commit also fixes those stack commands which were always applied on parent stacks.
[V2] Added sideMenu style options similar to V1 options (#3877)
* [V2] Added sideMenu style options similar to V1 options
* Added appropriate header import
* Documented iOS specific styling for new options
* Removed trailing commas for styling consistency