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

set up react-native-xaml to support non-xaml objects #141

Open
jechternach opened this issue Oct 11, 2021 · 1 comment
Open

set up react-native-xaml to support non-xaml objects #141

jechternach opened this issue Oct 11, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@jechternach
Copy link

Summary

It would be helpful to have support for non-xaml objects, such as composition objects that control animations

Motivation

Supports cases for applying animations to xaml objects, such as transition animations in gridView

Basic Example

<Style x:Key="sampleStyle" TargetType="GridView">
        <Setter Property="Template">
          <Setter.Value>
            <ControlTemplate TargetType="GridView">
              <GridView>
                <GridView.ItemContainerTransitions>
                  <TransitionCollection>
                        someAnimation
                  </TransitionCollection>
                </GridView.ItemContainerTransitions>
                <GridView.ItemsPanel>
                  <ItemsPanelTemplate>
                  </ItemsPanelTemplate>
                </GridView.ItemsPanel>
              </GridView>
            </ControlTemplate>
          </Setter.Value>
        </Setter>
</Style>

Open Questions

No response

@jechternach jechternach added the enhancement New feature or request label Oct 11, 2021
@ghost ghost added the Needs: Triage 🔍 label Oct 11, 2021
@chrisglein
Copy link
Member

Another deep layer to expose through JS, so this would be further out for any investment in react-native-xaml. Workaround for now is to define your animations in a XAML file and then have the JS refer back to that with a style key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants