Giter VIP home page Giter VIP logo

numandev1 / react-native-process-text-intent Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 2.0 4.83 MB

Get text from android android.intent.action.PROCESS_TEXT intent-filter

License: MIT License

Java 43.09% JavaScript 4.46% Ruby 7.25% Starlark 1.47% CMake 0.70% C++ 17.83% Shell 1.17% Swift 0.17% C 0.25% Objective-C 6.49% Objective-C++ 12.70% TypeScript 4.42%
process text processtext intent-filter process-text

react-native-process-text-intent's Introduction

react-native-process-text-intent

Get text from android android.intent.action.PROCESS_TEXT intent-filter

Demo

Installation

npm install react-native-process-text-intent

Usage

import { getProcessTextIntent } from 'react-native-process-text-intent';

// ...

getProcessTextIntent()
  .then((textResult) => {
    if (textResult) {
      console.log(textResult, 'ProcessedText');   // here will be your processed Text coming from android.intent.action.PROCESS_TEXT intent-filter
    }
  })
  .catch((error) => {
    console.log(error);
  });
};

first you need to add this intent-filter in AndroidManifest.xml

<intent-filter>
  <action android:name="android.intent.action.PROCESS_TEXT" />
  <category android:name="android.intent.category.DEFAULT" />
  <data android:mimeType="text/plain" />
</intent-filter>

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

react-native-process-text-intent's People

Contributors

numandev1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.