Skip to content

Conversation

@ferrannp
Copy link
Contributor

In this way, we can use a gesture handler view as part of an xml layout like follows (for example):

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" 
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView
        android:id="@+id/your_react_root_view_id"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>
</LinearLayout>

…e can use this view inside an xml layout file
Copy link
Member

@kmagiera kmagiera left a comment

Choose a reason for hiding this comment

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

Fantastic work! Thanks! 👏👏👏

@kmagiera kmagiera merged commit 49d9b3f into software-mansion:master Sep 10, 2019
@ferrannp ferrannp deleted the android-attrs-constructor branch September 10, 2019 12:42
janicduplessis pushed a commit to janicduplessis/react-native-gesture-handler that referenced this pull request Feb 16, 2020
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

Successfully merging this pull request may close these issues.

2 participants