diff --git a/.DS_Store b/.DS_Store
index 346515c..84caf3d 100644
Binary files a/.DS_Store and b/.DS_Store differ
diff --git a/README.md b/README.md
index 0e6ffd2..58e08c0 100644
--- a/README.md
+++ b/README.md
@@ -5,18 +5,26 @@ Utility that allows you to open other installed apps from within your React Nati
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 and if the application does not exist it triggers an error.
+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');
```
## Contribution
-Please contribute! PRs are welcome and I'll do my best to extend and improve this tool. For PR management, please follow the guidelines on `CONTRIBUTING.md`.
+Please contribute! PRs are welcome and I'll do my best to extend and improve this utility.
diff --git a/index.macos.js b/index.macos.js
index fa8f57d..a0d8d3e 100644
--- a/index.macos.js
+++ b/index.macos.js
@@ -10,4 +10,4 @@ const AppOpener = {
}
}
-module.exports = AppOpener;
+export default AppOpener;
diff --git a/package.json b/package.json
index 6425af6..b1faefa 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "react-native-macos-app-opener",
- "version": "0.0.1",
+ "version": "0.1.0",
"description": "React Native macOS utility for launching an application on macOS.",
"keywords": ["react-native-macos", "app-opener", "react-native", "macos"],
"main": "index.macos.js",
@@ -8,7 +8,7 @@
"license": "MIT",
"repository": {
"type": "git",
- "url": "https://github.com/andrerfneves/react-native-macos-app-opener.git",
+ "url": "https://github.com/andrerfneves/react-native-macos-app-opener.git"
},
"scripts": {
"test": "echo \"No tests specified\" && exit 1"
diff --git a/react-native-macos-app-opener.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/react-native-macos-app-opener.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/react-native-macos-app-opener.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/react-native-macos-app-opener.xcodeproj/project.xcworkspace/xcuserdata/andreneves.xcuserdatad/UserInterfaceState.xcuserstate b/react-native-macos-app-opener.xcodeproj/project.xcworkspace/xcuserdata/andreneves.xcuserdatad/UserInterfaceState.xcuserstate
new file mode 100644
index 0000000..4cb6f50
Binary files /dev/null and b/react-native-macos-app-opener.xcodeproj/project.xcworkspace/xcuserdata/andreneves.xcuserdatad/UserInterfaceState.xcuserstate differ
diff --git a/react-native-macos-app-opener.xcodeproj/xcuserdata/andreneves.xcuserdatad/xcschemes/react-native-macos-app-opener.xcscheme b/react-native-macos-app-opener.xcodeproj/xcuserdata/andreneves.xcuserdatad/xcschemes/react-native-macos-app-opener.xcscheme
new file mode 100644
index 0000000..95913b9
--- /dev/null
+++ b/react-native-macos-app-opener.xcodeproj/xcuserdata/andreneves.xcuserdatad/xcschemes/react-native-macos-app-opener.xcscheme
@@ -0,0 +1,80 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/react-native-macos-app-opener.xcodeproj/xcuserdata/andreneves.xcuserdatad/xcschemes/xcschememanagement.plist b/react-native-macos-app-opener.xcodeproj/xcuserdata/andreneves.xcuserdatad/xcschemes/xcschememanagement.plist
new file mode 100644
index 0000000..67d7b14
--- /dev/null
+++ b/react-native-macos-app-opener.xcodeproj/xcuserdata/andreneves.xcuserdatad/xcschemes/xcschememanagement.plist
@@ -0,0 +1,22 @@
+
+
+
+
+ SchemeUserState
+
+ react-native-macos-app-opener.xcscheme
+
+ orderHint
+ 0
+
+
+ SuppressBuildableAutocreation
+
+ ACCBE0251E2686ED00AE38AF
+
+ primary
+
+
+
+
+