mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 01:25:39 +00:00
b97ce93cea
Summary: NavigatorIOS supports four new properties: - **rightButtonImageSource:** The source of an image to display in the top right. This must be a static image since UINavigationController only supports UIImages. Adding support for UIImageViews (or arbitrary views) is more complicated because custom views do not fade on touch and do not have hit slop the same way that UIImage buttons do. Usage: `rightButtonImageSource: ix('ImageName')` - **backButtonImageSource:** Use a custom image for the back button. This does not replace the back caret (`<`) but instead replaces the text next to it. - **leftButtonTitle**: Text for the left nav button, which supersedes the previous nav item's back button when specified. The main use case for this is your initial screen/UIVC which has nothing to go back to (since it is the first VC on the stack) but need to display a left button. This does hide the back button if there would have been one otherwise. - **leftButtonImageSource:** Image source for the left button, super Closes https://github.com/facebook/react-native/pull/263 Github Author: James Ide <ide@jameside.com> Test Plan: Imported from GitHub, without a `Test Plan:` line.
47 lines
1.3 KiB
JavaScript
47 lines
1.3 KiB
JavaScript
/**
|
|
* The examples provided by Facebook are for non-commercial testing and
|
|
* evaluation purposes only.
|
|
*
|
|
* Facebook reserves all rights not expressly granted.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
|
|
* FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
|
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
*
|
|
* @flow
|
|
*/
|
|
'use strict';
|
|
|
|
declare module 'image!story-background' {
|
|
declare var uri: string;
|
|
declare var isStatic: boolean;
|
|
}
|
|
|
|
declare module 'image!uie_comment_highlighted' {
|
|
declare var uri: string;
|
|
declare var isStatic: boolean;
|
|
}
|
|
|
|
declare module 'image!uie_comment_normal' {
|
|
declare var uri: string;
|
|
declare var isStatic: boolean;
|
|
}
|
|
|
|
declare module 'image!uie_thumb_normal' {
|
|
declare var uri: string;
|
|
declare var isStatic: boolean;
|
|
}
|
|
|
|
declare module 'image!uie_thumb_selected' {
|
|
declare var uri: string;
|
|
declare var isStatic: boolean;
|
|
}
|
|
|
|
declare module 'image!NavBarButtonPlus' {
|
|
declare var uri: string;
|
|
declare var isStatic: boolean;
|
|
}
|