mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-11 09:11:14 +08:00
Release React Native for Android
This is an early release and there are several things that are known not to work if you're porting your iOS app to Android. See the Known Issues guide on the website. We will work with the community to reach platform parity with iOS.
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* Copyright (c) 2015-present, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
|
||||
package com.facebook.react.touch;
|
||||
|
||||
|
||||
/**
|
||||
* This interface should be implemented by all {@link ViewGroup} subviews that can be instantiating
|
||||
* by {@link NativeViewHierarchyManager}. It is used to configure onInterceptTouch event listener
|
||||
* which then is used to control touch event flow in cases in which they requested to be intercepted
|
||||
* by some parent view based on a JS gesture detector.
|
||||
*/
|
||||
public interface CatalystInterceptingViewGroup {
|
||||
|
||||
/**
|
||||
* A {@link ViewGroup} instance that implement this interface is responsible for storing the
|
||||
* listener passed as an argument and then calling
|
||||
* {@link OnInterceptTouchEventListener#onInterceptTouchEvent} from
|
||||
* {@link ViewGroup#onInterceptTouchEvent} and returning the result. If some custom handling of
|
||||
* this method apply for the view, it should be called after the listener returns and only in
|
||||
* a case when it returns false.
|
||||
*
|
||||
* @param listener A callback that {@link ViewGroup} should delegate calls for
|
||||
* {@link ViewGroup#onInterceptTouchEvent} to
|
||||
*/
|
||||
public void setOnInterceptTouchEventListener(OnInterceptTouchEventListener listener);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user