Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React-native: Fix event listening for story navigation #8690

Merged
merged 2 commits into from
Nov 4, 2019

Conversation

Gongreg
Copy link
Member

@Gongreg Gongreg commented Nov 3, 2019

Issue: #6471

What I did

Addons-ondevice-actions was completely broken (never showing any actions), so I changed the event to proper one. The issue #6471 still persists, but at least we can avoid it by not passing react events to it directy by doing.

<Button onPress={() => action('Button pressed')}>

@Gongreg Gongreg requested review from shilman and ndelangen November 3, 2019 13:57
@vercel
Copy link

vercel bot commented Nov 3, 2019

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/storybook/monorepo/lnafdgqg7
🌍 Preview: https://monorepo-git-ondevice-actions-fix.storybook.now.sh

@@ -50,6 +50,8 @@ export default class ActionLogger extends Component<ActionLoggerProps, ActionLog
};

addAction = (action: ActionDisplay) => {
console.warn('called!!');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

???

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops. :D

@shilman shilman changed the title Properly listen for story select instead of story_rendered, since story rendered is called when switching tabs. React-native: Fix event listening for story switching Nov 3, 2019
@shilman shilman changed the title React-native: Fix event listening for story switching React-native: Fix event listening for story navigation Nov 3, 2019
@shilman shilman added this to the 5.3.0 milestone Nov 3, 2019
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shilman shilman merged commit d8fbbe6 into next Nov 4, 2019
@shilman shilman deleted the ondevice-actions-fix branch November 4, 2019 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants