react-native-interactable
Advanced tools
Comparing version 0.1.8 to 0.1.9
@@ -105,4 +105,13 @@ import React, { Component } from 'react'; | ||
} | ||
} | ||
bringToFront() { | ||
if (Platform.OS === 'android') { | ||
UIManager.dispatchViewManagerCommand( | ||
ReactNative.findNodeHandle(this), | ||
UIManager.InteractableView.Commands.bringToFront, | ||
[], | ||
); | ||
} | ||
} | ||
export default WrappedAnimatedInteractableView; |
{ | ||
"name": "react-native-interactable", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "High performance interactable views in React Native", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -105,2 +105,11 @@ # Props Reference | ||
#### `startOnFront` (boolean) **[Android Only]** | ||
```jsx | ||
startOnFront | ||
``` | ||
Optional, whether the view should call `view.bringToFront()` when the view is first loaded. | ||
*Usually using zIndex does the trick. Use this in cases it doesn't* | ||
#### `verticalOnly` (boolean) | ||
@@ -107,0 +116,0 @@ |
@@ -172,2 +172,8 @@ <img src="http://i.imgur.com/ErA2GQo.gif" width=200 /> | ||
* [`startOnFront`](https://github.com/wix/react-native-interactable/blob/master/PROPS.md#startOnFront-boolean) - [ANDROID ONLY] whether the view should call `bringToFront` | ||
```jsx | ||
startOnFront | ||
``` | ||
* [`verticalOnly`](https://github.com/wix/react-native-interactable/blob/master/PROPS.md#verticalonly-boolean) - whether the view should be locked to vertical movement only | ||
@@ -174,0 +180,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
397438
241
348