Giter Site home page Giter Site logo

andrerfneves / react-native-macos-app-opener Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 13 KB

React Native macOS App Opener - allows you to open other installed apps from within your React Native macOS application

JavaScript 28.55% Objective-C 71.45%
react-native-macos app-opener macos react-native

react-native-macos-app-opener's Introduction

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.

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

Contribution

Please contribute! PRs are welcome and I'll do my best to extend and improve this utility.

react-native-macos-app-opener's People

Stargazers

 avatar  avatar

Watchers

 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.