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

Jump to screen with no animation #2879

Closed
Talkwondo opened this issue Feb 12, 2018 · 11 comments
Closed

Jump to screen with no animation #2879

Talkwondo opened this issue Feb 12, 2018 · 11 comments

Comments

@Talkwondo
Copy link

Hi,
Please someone explain me how to do it.

Thanks,

@JulioOrellana
Copy link

Have you tried Actions.(yourScreenName)({ type: ActionsConst.REPLACE })

You must import { Actions, ActionsConst } from 'react-native-router-flux'

i.e: Actions.home({ type: ActionsConst.REPLACE })

@Talkwondo
Copy link
Author

Hi,
I tried this. and this is the error:

screen shot 2018-02-13 at 15 37 10

@JulioOrellana
Copy link

Hello, I am so sorry, it is ActionConst, not ActionsConst (mind the "s")

screen shot 2018-02-13 at 10 39 41 am

@Talkwondo
Copy link
Author

does not help. I used this RNRF before and for some reason this not the same syntax

import { Actions, ActionConst } from 'react-native-router-flux'
this is my code:
setTimeout(function() {
Actions.main({type: ActionConst.REPLACE})
},3000)
screen shot 2018-02-13 at 16 36 55

@JulioOrellana
Copy link

What's your version of RNRF? if it is beta.28, change it for beta.27.

npm uninstall --save react-native-router-flux
npm install --save [email protected]

@Talkwondo
Copy link
Author

It is now has no Error but there is still animation from right to left. and I tried couple keywords like JUMP and PUSH.... no change

@JulioOrellana
Copy link

Then, try Actions.replace("main")

@Talkwondo
Copy link
Author

I tried this already... very strange...

@Blapi
Copy link
Collaborator

Blapi commented Feb 13, 2018

If it is about the transitions, have a look at #2628 please :) You will find your answer here. Ask if you need anything else.

@Blapi Blapi closed this as completed Feb 13, 2018
@mackenziemance
Copy link
Contributor

Yepp I reproduced, Actions.replace() seems to be broken with beta.28

@Blapi
Copy link
Collaborator

Blapi commented Feb 19, 2018

It is on .28, it works on .27

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

No branches or pull requests

4 participants