https://github.com/numandev1/react-native-process-text-intent
Get text from android android.intent.action.PROCESS_TEXT intent-filter
https://github.com/numandev1/react-native-process-text-intent
intent-filter process process-text processtext text
Last synced: about 1 year ago
JSON representation
Get text from android android.intent.action.PROCESS_TEXT intent-filter
- Host: GitHub
- URL: https://github.com/numandev1/react-native-process-text-intent
- Owner: numandev1
- License: mit
- Created: 2022-11-18T12:27:53.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-18T12:36:35.000Z (over 3 years ago)
- Last Synced: 2025-05-12T21:13:33.505Z (about 1 year ago)
- Topics: intent-filter, process, process-text, processtext, text
- Language: Java
- Homepage:
- Size: 4.72 MB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# react-native-process-text-intent
Get text from android `android.intent.action.PROCESS_TEXT` intent-filter
# Demo

## Installation
```sh
npm install react-native-process-text-intent
```
## Usage
```js
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`
```xml
```
## Contributing
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## License
MIT
---
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)