Skip to content

[Android] Add ability to start app with deep stack#2761

Merged
guyca merged 1 commit into
masterfrom
startAppDeepStack
Feb 21, 2018
Merged

[Android] Add ability to start app with deep stack#2761
guyca merged 1 commit into
masterfrom
startAppDeepStack

Conversation

@guyca
Copy link
Copy Markdown
Collaborator

@guyca guyca commented Feb 21, 2018

For example, the following code will start a single screen app with two
screens pushed into the stack.

Navigation.startSingleScreenApp({
    components: [
    {
      screen: 'example.Types',
      title: 'Navigation Types',
      overrideBackPress: true
    },
    {
      screen: 'example.Types.CustomButtonScreen',
      title: 'Custom Buttons'
    }
  ]
});

For example, the following code will start a single screen app with two
screens pushed into the stack.

```js
Navigation.startSingleScreenApp({
    components: [
    {
      screen: 'example.Types',
      title: 'Navigation Types',
      overrideBackPress: true
    },
    {
      screen: 'example.Types.CustomButtonScreen',
      title: 'Custom Buttons'
    }
  ]
});
```
@guyca guyca merged commit e0a6ff2 into master Feb 21, 2018
@guyca guyca deleted the startAppDeepStack branch February 21, 2018 08:32
guyca added a commit that referenced this pull request Feb 27, 2018
The initial modal screen got animated twice, this regression was introduced in #2761.
thanhzusu pushed a commit to thanhzusu/react-native-navigation that referenced this pull request Feb 28, 2018
* master: (88 commits)
  try rebuild in ci
  Closes wix#2777
  Re: Now allowing the custom nav bar to take up the whole space on iOS (wix#2620)
  Fix flickering modal on Android
  Apply title in resetTo (wix#2787)
  Save props in singleScreenApp
  fixes large titles (wix#2775)
  fix tests
  Update build tools version
  Set layout style after modal dismiss
  deep stack passProps fix
  save additional screens passProps
  deep stack for startTabBasedApp and startSingleScreenApp (wix#2770)
  Added ability to specify font size for tab bar labels on Android (wix#2754)
  [Android] Add ability to start app with deep stack (wix#2761)
  [iOS] Allow set view controllers to be called with multiple components (wix#2247)
  Document subtitle parameter for screen push (wix#2735)
  Fix EmptyStackException (wix#2746)
  Reject promise if push fails
  Set titleBarSubTitleTextCentered as navigator style for android (wix#2611)
  ...

# Conflicts:
#	android/app/src/main/java/com/reactnativenavigation/params/ScreenParams.java
#	android/app/src/main/java/com/reactnativenavigation/views/LightBox.java
chilinh added a commit to chilinh/react-native-navigation that referenced this pull request Mar 1, 2018
* r_master:
  fix travis publish
  debug travis deploy
  try rebuild in ci
  Closes wix#2777
  Re: Now allowing the custom nav bar to take up the whole space on iOS (wix#2620)
  Fix flickering modal on Android
  Apply title in resetTo (wix#2787)
  Save props in singleScreenApp
  fixes large titles (wix#2775)
  fix tests
  Update build tools version
  Set layout style after modal dismiss
  deep stack passProps fix
  save additional screens passProps
  deep stack for startTabBasedApp and startSingleScreenApp (wix#2770)
  Added ability to specify font size for tab bar labels on Android (wix#2754)
  [Android] Add ability to start app with deep stack (wix#2761)

# Conflicts:
#	android/app/build.gradle
#	android/gradle/wrapper/gradle-wrapper.properties
timxyz pushed a commit to 3sidedcube/react-native-navigation that referenced this pull request May 23, 2018
* develop: (340 commits)
  Makes sure subtitle text is tinted by navigation bar style
  Re: Now allowing the custom nav bar to take up the whole space on iOS (wix#2620)
  Fix flickering modal on Android
  Apply title in resetTo (wix#2787)
  Save props in singleScreenApp
  fixes large titles (wix#2775)
  fix tests
  Update build tools version
  Set layout style after modal dismiss
  deep stack passProps fix
  save additional screens passProps
  deep stack for startTabBasedApp and startSingleScreenApp (wix#2770)
  Added ability to specify font size for tab bar labels on Android (wix#2754)
  [Android] Add ability to start app with deep stack (wix#2761)
  [iOS] Allow set view controllers to be called with multiple components (wix#2247)
  Document subtitle parameter for screen push (wix#2735)
  Fix EmptyStackException (wix#2746)
  Reject promise if push fails
  Set titleBarSubTitleTextCentered as navigator style for android (wix#2611)
  Send bottomTabSelected event by tab index
  ...

# Conflicts:
#	android/app/src/main/java/com/reactnativenavigation/bridge/NavigationReactModule.java
#	android/app/src/main/java/com/reactnativenavigation/controllers/NavigationActivity.java
#	src/Navigation.js
#	src/deprecated/platformSpecificDeprecated.android.js
#	src/platformSpecific.android.js
reimertz pushed a commit to mavencook/react-native-navigation that referenced this pull request Sep 14, 2018
For example, the following code will start a single screen app with two
screens pushed into the stack.

```js
Navigation.startSingleScreenApp({
    components: [
    {
      screen: 'example.Types',
      title: 'Navigation Types',
      overrideBackPress: true
    },
    {
      screen: 'example.Types.CustomButtonScreen',
      title: 'Custom Buttons'
    }
  ]
});
```
reimertz pushed a commit to mavencook/react-native-navigation that referenced this pull request Sep 14, 2018
The initial modal screen got animated twice, this regression was introduced in wix#2761.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant