GithubHelp home page GithubHelp logo

eneskarpuz / react-native-drag-text-editor Goto Github PK

View Code? Open in Web Editor NEW
249.0 4.0 32.0 3.27 MB

๐Ÿ“ 60FPS dynamic text editor powered with Reanimated

Home Page: https://eneskarpuz.github.io/react-native-drag-text-editor

License: MIT License

JavaScript 0.78% TypeScript 99.22%
image-processing drag photo-editing drag-and-drop draggable photo-editor text-editor rich-editor image-manipulation react-native

react-native-drag-text-editor's Introduction

React Native Drag Text Editor

reanimated npm npm runs with expo

๐Ÿ“ 60FPS Draggable, Rotatable, Resizeable Text Input Component written in Typescript and Reanimated 2

React Native Drag Text Editor

Features

  • Powered with Reanimated v2.
  • Compatible with Expo.
  • Written in TypeScript.

Getting Started

Check out the documentation website.

License

MIT

Support

You can drop a star if this project helped you out. ๐Ÿ’ซ

react-native-drag-text-editor's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-native-drag-text-editor's Issues

Feature request: Text rotation

This package looks awesome!! Thanks for this.

Are there plans to add text rotation soon? This would be a necessary UI/UX before incorporating in a project of mine at least.

Support a callback function to detect text changes

Is your feature request related to a problem? Please describe.
It would be useful to detect changes in the text content of the box.

Describe the solution you'd like
I propose adding an onChangeText prop that would receive the text contents of the control when those contents change

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

It would be accessed like this:

  <DragTextEditor
        ...
        onChangeText={(text: string) => console.log(text)}
      />

It would require the following code to be added to DragTextEditor.js:

componentDidUpdate(prevProps, prevState){
    if(this.state.text !== prevState.text){
      if(this.props.onChangeText){
        this.props.onChangeText(this.state.text);
      }
    }
  }

Additional context
I can submit a PR if this works for you @eneskarpuz

Change text color and font

Hi,
I'm getting an issue on this when trying to change font size, font family and color by set state.
Can you update these features.
Thank you.

Copy and Paste not working

Bug

Describe the bug
I have used this library but copy paste not working on android

Device info

  • Device: Redmi Note 6 pro
  • Version [e.g. 22]

Environment info

Library Version
react-native-drag-text-editor 0.0.7
react-native ~0.63.4

Expo support

Hi Enes

Thanks for this package. React native developers need something like that.

I have question for you; can we use use this library in expo projects?

Not working on 0.72.4

Bug

The Library is not working with reanimated3 library
A clear and concise description of what the bug is.

Device info

  • Device: ios
  • Version 16

Environment info

Library Version
react-native-drag-text-editor 1.0.5
react-native 0.72.4

Steps To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Describe what you expected to happen:

  1. I would expect its run on ios and android

Reproducible sample code

Additional context

Add any other context about the problem here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.