Skip to content

[v2] Animating custom transitions for push? #4193

Closed
@stokesbga

Description

@stokesbga

Issue Description

For some reason, I can't get any custom push animations to work on ios (havent tried android)
I can put following object in setDefaultOptions or push and nothing will work. I've tried alpha, x, y, scale, but no dice.

Also, interestingly, the animations: { enabled: 'true'} value works. If i set to false, there is no transition. However, virtually anything else I do inside of animations: {push: { ... }} does not work.

I've tried with and without content. Any tips?

Thanks

Steps to Reproduce / Code Snippets / Screenshots

Navigation.push(this.props.componentId, {
  component: {
    id: 'blah',
    name: 'blah',
    passProps: {},
    options: {
            animations: {
              push: {
                enabled: "true",
                content: {
                  alpha: {
                    from: 0,
                    to: 1,
                    duration: 3000,
                    interpolation: "accelerate"
                  }
                }
              }
            }
          }
      }
    }
  }

Environment

  • React Native Navigation version: 2.0.2608
  • React Native version: 0.57.3
  • Platform(s) (iOS, Android, or both?): ios
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator Debug

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions