react-native-view-editable
react-native-view-editable
npm i react-native-view-editable
react-native-view-editable

react-native-view-editable

The one of the missing piece of react-native. View transformation with gestures ✋

by react-armenia

1.1.1 (see all)License:MITTypeScript:Not Found
npm i react-native-view-editable
Readme

react-native-view-editable

Build Status semantic-release

The one of the missing piece of react-native. View transformation with gestures ✋. This makes ANY views editable using gestures like pinch, double tap or pull. You can scale/rotate/move any view

Getting Started

$ npm install react-native-view-editable --save

or

$ yarn add react-native-view-editable

Usage

/**
 * @flow
 */

import React, { Component } from 'react';
import {
  AppRegistry,
  StyleSheet,
  Text,
  View
} from 'react-native';

import { ViewEditor } from 'react-native-view-editable';

export default class App extends Component {
  render() {
    return (
        <ViewEditor style={styles.container} minScale={1} maxScale={10}>
            <View>
                <Text style={styles.welcome}>
                    Welcome to React Native!
                </Text>
                <Text style={styles.instructions}>
                To get started, edit index.ios.js
                </Text>
                <Text style={styles.instructions}>
                Press Cmd+R to reload,{'\n'}
                Cmd+D or shake for dev menu
                </Text>
            </View>
        </ViewEditor>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
  welcome: {
    fontSize: 20,
    textAlign: 'center',
    margin: 10,
  },
  instructions: {
    textAlign: 'center',
    color: '#333333',
    marginBottom: 5,
  },
});

AppRegistry.registerComponent('experimentsApp', () => App);

Downloads/wk

9

GitHub Stars

21

LAST COMMIT

5yrs ago

MAINTAINERS

1

CONTRIBUTORS

1

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
1.1.1
latest
6yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate