Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 4c560b9

Browse files
author
Richard Hua
authored
Bullet point and indent decorator options for clearer separation
1 parent 9c97704 commit 4c560b9

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -406,32 +406,32 @@ With the CodePush plugin downloaded and linked, and your app asking CodePush whe
406406

407407
The simplest way to do this is to "CodePush-ify" your app's root component. To do so, you can choose one of the following two options:
408408

409-
**Option 1: Wrap your root component using the `codePush` decorator function:**
409+
* **Option 1: Wrap your root component using the `codePush` decorator function:**
410410

411-
```javascript
412-
import codePush from "react-native-code-push";
413-
414-
let codePushOptions;
415-
416-
class MyApp extends Component {
417-
}
418-
419-
MyApp = codePush(codePushOptions)(MyApp);
420-
```
411+
```javascript
412+
import codePush from "react-native-code-push";
413+
414+
let codePushOptions;
415+
416+
class MyApp extends Component {
417+
}
418+
419+
MyApp = codePush(codePushOptions)(MyApp);
420+
```
421421

422-
**Option 2: Use the [ES7 decorator](https://github.com/wycats/javascript-decorators) syntax:**
422+
* **Option 2: Use the [ES7 decorator](https://github.com/wycats/javascript-decorators) syntax:**
423423

424-
```javascript
425-
import codePush from "react-native-code-push";
424+
```javascript
425+
import codePush from "react-native-code-push";
426426
427-
let codePushOptions;
427+
let codePushOptions;
428428
429-
@codePush(codePushOptions)
430-
class MyApp extends Component {
431-
}
432-
```
429+
@codePush(codePushOptions)
430+
class MyApp extends Component {
431+
}
432+
```
433433

434-
*NOTE: Decorators are not yet supported in Babel 6.x pending proposal update.* You may need to enable it by installing and using [babel-preset-react-native-stage-0](https://github.com/skevy/babel-preset-react-native-stage-0#babel-preset-react-native-stage-0).
434+
*NOTE: Decorators are not yet supported in Babel 6.x pending proposal update.* You may need to enable it by installing and using [babel-preset-react-native-stage-0](https://github.com/skevy/babel-preset-react-native-stage-0#babel-preset-react-native-stage-0).
435435

436436
If an update is available, it will be silently downloaded, and installed the next time the app is restarted (either explicitly by the end user or by the OS), which ensures the least invasive experience for your end users. If an available update is mandatory, then it will be installed immediately, ensuring that the end user gets it as soon as possible.
437437

0 commit comments

Comments
 (0)