Compare commits

..
7 Commits
Author SHA1 Message Date
Radek Czemerys 6e5244c745 fix: permissions & dependency upgrade (#81) 2019-09-30 15:20:23 +02:00
Emin Khateeb e79a558d9d Merge pull request #78 from react-native-community/fix/global-error
Fix issue with global.HermesIternal
2019-09-27 08:15:57 +02:00
Radek Czemerys 66b6b39976 chore: fix typo 2019-09-26 13:53:58 +02:00
Radek Czemerys 7ddce71e49 Fix issue with global.HermesIternal
Fixes #71
2019-09-26 13:47:29 +02:00
Emin Khateeb da00aff48c Merge pull request #77 from react-native-community/rn60-usage
Add RN 0.60 usage to readme
2019-09-26 13:06:15 +02:00
Radek Czemerys f65950c30b Remove version from init command 2019-09-26 12:56:15 +02:00
Radek Czemerys 93f8d1fdd1 Add RN 0.60 usage to readme 2019-09-26 10:58:47 +02:00
50 changed files with 20 additions and 13 deletions

No files matched your search

+7 -1
View File
@@ -25,12 +25,18 @@
## :arrow_forward: Usage
> `react-native@0.60` or higher
> `react-native@0.61.0` or higher
```sh
npx react-native init MyApp --template react-native-template-typescript
```
> `react-native@0.60.x`
```sh
npx react-native init MyApp --template react-native-template-typescript@6.2.0
```
### Note on the legacy CLI
There seems to be quite some confusion about the legacy CLI. This template only works with the new CLI. Make sure you have uninstalled the legacy `react-native-cli` first (`npm uninstall -g react-native-cli`), for the above command to work. If you wish to not use `npx`, you can also install the new CLI globally (`npm i -g @react-native-community/cli` or `yarn global add @react-native-community/cli`).
Executable → Regular
+2 -1
View File
@@ -27,6 +27,7 @@ import {
} from 'react-native/Libraries/NewAppScreen';
const App = () => {
const usingHermes = typeof HermesInternal === 'object' && HermesInternal !== null;
return (
<>
<StatusBar barStyle="dark-content" />
@@ -35,7 +36,7 @@ const App = () => {
contentInsetAdjustmentBehavior="automatic"
style={styles.scrollView}>
<Header />
{global.HermesInternal == null ? null : (
{!usingHermes ? null : (
<View style={styles.engine}>
<Text style={styles.footer}>Engine: Hermes</Text>
</View>
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
Vendored Executable → Regular
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File
File mode changed.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

View File
File mode changed.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File
File mode changed.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File
File mode changed.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

View File
File mode changed.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

View File
File mode changed.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

View File
File mode changed.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File
File mode changed.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

View File
File mode changed.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File
File mode changed.
Executable → Regular
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
Vendored Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
File mode changed.
File mode changed.
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
File mode changed.
View File
File mode changed.
View File
File mode changed.
Executable → Regular
View File
File mode changed.
View File
File mode changed.
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
View File
File mode changed.
Executable → Regular
+11 -11
View File
@@ -9,21 +9,21 @@
"test": "jest"
},
"dependencies": {
"react": "16.8.1",
"react": "16.9.0",
"react-native": "0.61.1"
},
"devDependencies": {
"@babel/core": "^7.5.0",
"@babel/runtime": "^7.5.0",
"@react-native-community/eslint-config": "^0.0.3",
"@babel/core": "^7.6.2",
"@babel/runtime": "^7.6.2",
"@react-native-community/eslint-config": "^0.0.5",
"@types/jest": "^24.0.18",
"@types/react": "16.8.19",
"@types/react-native": "0.60.15",
"@types/react-test-renderer": "16.8.1",
"babel-jest": "^24.1.0",
"jest": "^24.1.0",
"metro-react-native-babel-preset": "^0.51.1",
"react-test-renderer": "16.8.1",
"@types/react": "16.9.0",
"@types/react-native": "^0.60.17",
"@types/react-test-renderer": "16.9.0",
"babel-jest": "^24.9.0",
"jest": "^24.9.0",
"metro-react-native-babel-preset": "^0.56.0",
"react-test-renderer": "16.9.0",
"typescript": "^3.6.3"
},
"jest": {