Commit 559afcbd authored by Travis Nuttall's avatar Travis Nuttall

update package name to be pluralized everywhere

parent 9b28cad3
...@@ -12,11 +12,11 @@ and I recommend you investigate those thoroughly before using this library. ...@@ -12,11 +12,11 @@ and I recommend you investigate those thoroughly before using this library.
## Getting started ## Getting started
`$ npm install react-native-thread --save` `$ npm install react-native-threads --save`
### Mostly automatic installation ### Mostly automatic installation
`$ react-native link react-native-thread` `$ react-native link react-native-threads`
### Android ### Android
...@@ -46,7 +46,7 @@ like this: ...@@ -46,7 +46,7 @@ like this:
#### iOS #### iOS
1. In XCode, in the project navigator, right click `Libraries``Add Files to [your project's name]` 1. In XCode, in the project navigator, right click `Libraries``Add Files to [your project's name]`
2. Go to `node_modules``react-native-thread` and add `RNThread.xcodeproj` 2. Go to `node_modules``react-native-threads` and add `RNThread.xcodeproj`
3. In XCode, in the project navigator, select your project. Add `libRNThread.a` to your project's `Build Phases``Link Binary With Libraries` 3. In XCode, in the project navigator, select your project. Add `libRNThread.a` to your project's `Build Phases``Link Binary With Libraries`
4. Run your project (`Cmd+R`)< 4. Run your project (`Cmd+R`)<
...@@ -63,12 +63,12 @@ like this: ...@@ -63,12 +63,12 @@ like this:
2. Append the following lines to `android/settings.gradle`: 2. Append the following lines to `android/settings.gradle`:
``` ```
include ':react-native-thread' include ':react-native-threads'
project(':react-native-thread').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-thread/android') project(':react-native-threads').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-threads/android')
``` ```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`: 3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
``` ```
compile project(':react-native-thread') compile project(':react-native-threads')
``` ```
#### Windows #### Windows
...@@ -76,7 +76,7 @@ Windows support is not yet implemented, but PRs are welcome if you want to give ...@@ -76,7 +76,7 @@ Windows support is not yet implemented, but PRs are welcome if you want to give
[Read it! :D](https://github.com/ReactWindows/react-native) [Read it! :D](https://github.com/ReactWindows/react-native)
1. In Visual Studio add the `RNThread.sln` in `node_modules/react-native-thread/windows/RNThread.sln` folder to their solution, reference from their app. 1. In Visual Studio add the `RNThread.sln` in `node_modules/react-native-threads/windows/RNThread.sln` folder to their solution, reference from their app.
2. Open up your `MainPage.cs` app 2. Open up your `MainPage.cs` app
- Add `using Thread.RNThread;` to the usings at the top of the file - Add `using Thread.RNThread;` to the usings at the top of the file
- Add `new RNThreadPackage()` to the `List<IReactPackage>` returned by the `Packages` method - Add `new RNThreadPackage()` to the `List<IReactPackage>` returned by the `Packages` method
...@@ -114,7 +114,7 @@ self.onmessage = (message) => { ...@@ -114,7 +114,7 @@ self.onmessage = (message) => {
self.postMessage('hello'); self.postMessage('hello');
``` ```
Check out the examples directory in this repo for demos of using `react-native-thread` Check out the examples directory in this repo for demos of using `react-native-threads`
in a functioning app! in a functioning app!
### Thread Lifecycle ### Thread Lifecycle
......
...@@ -7,7 +7,7 @@ import { ...@@ -7,7 +7,7 @@ import {
TouchableOpacity, TouchableOpacity,
} from 'react-native'; } from 'react-native';
import { Thread } from 'react-native-thread'; import { Thread } from 'react-native-threads';
class ThreadExample extends Component { class ThreadExample extends Component {
componentDidMount() { componentDidMount() {
......
...@@ -7,7 +7,7 @@ import { ...@@ -7,7 +7,7 @@ import {
TouchableOpacity, TouchableOpacity,
} from 'react-native'; } from 'react-native';
import { Thread } from 'react-native-thread'; import { Thread } from 'react-native-threads';
class ThreadExample extends Component { class ThreadExample extends Component {
componentDidMount() { componentDidMount() {
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"dependencies": { "dependencies": {
"react": "16.0.0-alpha.12", "react": "16.0.0-alpha.12",
"react-native": "0.48.3", "react-native": "0.48.3",
"react-native-thread": "file:../../" "react-native-threads": "file:../../"
}, },
"devDependencies": { "devDependencies": {
"babel-jest": "21.0.2", "babel-jest": "21.0.2",
......
import { self } from 'react-native-thread'; import { self } from 'react-native-threads';
/* /*
* Web Worker * Web Worker
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment