https://github.com/andrerfneves/react-native-macos-app-opener
React Native macOS App Opener - allows you to open other installed apps from within your React Native macOS application
https://github.com/andrerfneves/react-native-macos-app-opener
app-opener macos react-native react-native-macos
Last synced: about 2 months ago
JSON representation
React Native macOS App Opener - allows you to open other installed apps from within your React Native macOS application
- Host: GitHub
- URL: https://github.com/andrerfneves/react-native-macos-app-opener
- Owner: andrerfneves
- Created: 2017-02-01T16:44:02.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2017-02-03T22:55:14.000Z (over 9 years ago)
- Last Synced: 2025-10-14T11:24:46.411Z (8 months ago)
- Topics: app-opener, macos, react-native, react-native-macos
- Language: Objective-C
- Size: 12.7 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React Native macOS App Opener
Utility that allows you to open other installed apps from within your React Native macOS application.
## React Native macOS
React Native macOS is a very young implementation of React Native with support for macOS systems. Because of that, the library is not yet stable. There have been no successes for real-world applications built with react-native-macos yet. Proceed at your own risk.
## Installation
Install component and save to dependencies:
```
npm i react-native-macos-app-opener --save
```
Link native modules to your project automatically with:
```
react-native-macos link
```
Or you can follow the same pattern seen in [React Native iOS Library Linking](https://facebook.github.io/react-native/docs/linking-libraries-ios.html).
## Details
The utility leverages `NSWorkspace` to launch an application passed through a parameter to `AppOpener`. If the application is already opened, the system will bring it to the front. If the application is closed, it will launch it.
## Usage
```
import AppOpener from 'react-native-macos-app-opener';
AppOpener.openApp('Finder');
```
## Example
You can find a simple example repository here:
[https://github.com/andrerfneves/react-native-macos-app-opener-example](https://github.com/andrerfneves/react-native-macos-app-opener-example)
## Contribution
Please contribute! PRs are welcome and I'll do my best to extend and improve this utility.