# react-native-drag-debugger

> JavaScript implementation of a view container that can flip between its front and back, where the back has a console.log and the front is your aplication.

Latest version **0.1.1** (published 2016-11-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-drag-debugger
pnpm add react-native-drag-debugger
yarn add react-native-drag-debugger
bun add react-native-drag-debugger
```

## Health

**Score 5/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2016-11-11 |
| First published | 2016-11-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Infinity0106 |
| Maintainers | infinity0106 |
| Keywords | react-native, react-component, ios, android, Debugger, flip-view, drag and drop, pan responder |

## Links

- npm: https://www.npmjs.com/package/react-native-drag-debugger
- Repository: https://github.com/TradingPal/react-debbuger
- Homepage: https://github.com/TradingPal/react-debbuger#readme
- Issues: https://github.com/TradingPal/react-debbuger/issues
- npm.io page: https://npm.io/package/react-native-drag-debugger

## Dependencies (3)

- [react-native-flip-view](https://npm.io/package/react-native-flip-view.md) git://github.com/Infinity0106/react-native-flip-view.git#commit-ish
- [react-native-console-panel](https://npm.io/package/react-native-console-panel.md) 0.1.0
- [react-native-gesture-responder](https://npm.io/package/react-native-gesture-responder.md) 0.1.1

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2016-11-11

## README

# react-native-drag-debugger

react-native component that let you see the console inside your app, in just one tap

## Demo
![](http://i.giphy.com/3oz8xDUoOIPw1UCqJ2.gif)

## Pre-Requirements

### react-native-console-panel
```sh
npm install --save react-native-console-panel --save
```
### react-native-flip-view
```sh
npm install git://github.com/Infinity0106/react-native-flip-view.git --save
```
### react-native-gesture-responder
```sh
npm i react-native-gesture-responder --save
```

## Installation
```sh
npm i react-native-drag-debugger --save
```

## Example 
```js
import DragDebuger from "react-native-drag-debugger.js";
...

render(){
		const routes = [
			{title: "First Scene", index: 0},
			{title: "Second Scene", index: 1},
		];
		return(
			<DragDebuger positionX={175} positionY={275} sourceIMG={this.image()}>
				<Navigator
					initialRoute={routes[0]}
					initialRouteStack={routes}
					renderScene={(route, navigator) =>
						<TouchableHighlight onPress={() => {
						if (route.index === 0) {
							navigator.push(routes[1]);
							console.log("inicio");
						} else {
							navigator.pop();
							console.log("final");
						}
						}}>
						<Text>Hello {route.title}!</Text>
						</TouchableHighlight>
					}
					style={{borderColor: "red",borderWidth:2, backgroundColor: "white"}}
					/>
			</DragDebuger>
		);
};
image(){
	return(<Image style={{width:50,height:50}} source={{uri:'http://hitchcock.itc.virginia.edu/Slavery/next.gif'}}/>);
};
```

## Props
|Prop		|Description							|Default					|
|-----------|---------------------------------------|---------------------------|
|`positionX`|initial X value for left positioning	| 0							|
|`positionY`|initial Y value for top positioning 	| 0							|
|`sourceIMG`|initial Image for the icon 			|![bug img](./bug_icon.png)	|


## Thanks To 
* [NativeSH](https://github.com/NativeSH/react-native-console-panel) (for the console panel)
* [kevinstumpf](https://github.com/kevinstumpf/react-native-flip-view) (for the flip view animation)
* [ldn0x7dc](https://github.com/ldn0x7dc/react-native-gesture-responder) (for the geesture responder)

---
_Source: https://npm.io/package/react-native-drag-debugger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
