[iOS] Fix getCurrentlyVisibleScreenId with drawer#2052
Conversation
|
Fixes #1728 |
|
@Royce I've tried using Whats strange is calling |
|
await Navigation.getCurrentlyVisibleScreenId() can't/won't return your
'my.screen'
because a 'my.screen' screen could be mounted multiple times. I don't
think await
Navigation.getCurrentlyVisibleScreenId() is really meant to be part of
the public API.
…On Sat, Dec 23, 2017 at 5:31 AM, Ryan Pendergast ***@***.***> wrote:
@Royce <https://github.com/royce> this.props.navigator.
screenIsCurrentlyVisible() is still always false for me on iOS.
react-native-navigation v1.1.316. I'm not using drawer mode, I'm only
using Navigation.startTabBasedApp().
I've tried using this.props.navigator.screenIsCurrentlyVisible() both on
a screen that is opened from a tab AND a screen that is opened in a modal.
Whats strange is calling const visibleScreenInstanceId = await Navigation.
getCurrentlyVisibleScreenId() always returns a strange screen id like
controllerID1_nav0 instead of the screen ID that i registered via
Navigation.registerComponent('my.screen', () => ThingFinder, store,
Provider);
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2052 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABlL0yNCMBee70PGnEObIl-0yAWnaF_ks5tDB-ggaJpZM4QBAEG>
.
|
…)" This reverts commit 2c30a52.
… iOS" (#2404) * Revert "Improve getCurrentlyVisibleScreenId on iOS with drawers. (#2052)" This reverts commit 2c30a52. * Revert "introducing navbar shadow on iOS (#2339)" This reverts commit 8fd496e. * Revert "This fixes an issue with a custom title-view (which has a title and a subtitle) appearing at the left side of the nav-bar instead of the center during a transition animation: when a screen with this title-view is being pushed or when you pop back to it. (#2384)" This reverts commit 3f7f6c2. * Revert "Now allowing the custom nav bar to take up the whole space on iOS (#2306)" This reverts commit 74a02cc.
|
@Royce thanks makes sense. I didn't notice this PR was not merged into master yet, so crossing fingers |
* r_master: fixes wix#2353 Update third-party-libraries-support.md [docs] Update minimum officially supported RN version Don't override LightBox ReactRootView id Update example app to rn51 Revert "fix images name (wix#2451)" Revert "Upgrade example proj to rn51 (wix#2452)" Upgrade example proj to rn51 (wix#2452) fix images name (wix#2451) fixed buttons text attributes revert on press Fix a uncommented line (wix#2226) Support re-enabling top bar elevation (wix#2229) Document how to use index.js as entry point (wix#2412) Revert "Now allowing the custom nav bar to take up the whole space on iOS" (wix#2404) Improve getCurrentlyVisibleScreenId on iOS with drawers. (wix#2052) introducing navbar shadow on iOS (wix#2339) This fixes an issue with a custom title-view (which has a title and a subtitle) appearing at the left side of the nav-bar instead of the center during a transition animation: when a screen with this title-view is being pushed or when you pop back to it. (wix#2384)
… iOS" (wix#2404) * Revert "Improve getCurrentlyVisibleScreenId on iOS with drawers. (wix#2052)" This reverts commit 2c30a52. * Revert "introducing navbar shadow on iOS (wix#2339)" This reverts commit 8fd496e. * Revert "This fixes an issue with a custom title-view (which has a title and a subtitle) appearing at the left side of the nav-bar instead of the center during a transition animation: when a screen with this title-view is being pushed or when you pop back to it. (wix#2384)" This reverts commit 3f7f6c2. * Revert "Now allowing the custom nav bar to take up the whole space on iOS (wix#2306)" This reverts commit 74a02cc.
This fixes two issues with
Navigation.getCurrentlyVisibleScreenIdandthis.props.navigator.screenIsCurrentlyVisible()on iOS.controllerIdis only used to return ascreenIdfor Navigation.getCurrentlyVisibleScreenId.