Compare commits

..
17 Commits
Author SHA1 Message Date
Mateus Andrade 76c70cf207 Merge pull request #59 from react-native-community/fix/default-readme
Fix suggested usage for RN >= 0.60
2019-09-10 10:02:44 -03:00
Radek Czemerys d727d3c7e6 Fix suggested usage for RN >= 0.60 2019-09-10 11:18:53 +02:00
Emin Khateeb eae5bed476 Merge pull request #55 from react-native-community/orta-patch-1
Update App.tsx to correspond to def typed updates
2019-08-12 14:18:15 +02:00
Orta 94c175664a Update App.tsx 2019-08-01 16:04:53 -04:00
Emin Khateeb 98c6517801 Merge pull request #51 from react-native-community/dependency-updates
updated dependencies
2019-07-16 08:02:41 +02:00
Emin Khateeb 9e832e69c6 updated dependencies 2019-07-16 08:01:57 +02:00
Emin Khateeb 93b8ef0173 Merge pull request #49 from sijad/patch-1
add hermes engine notice
2019-07-16 07:45:07 +02:00
Sajjad Hashemian 604fce0372 add hermes engine notice 2019-07-15 18:35:41 +04:30
Emin Khateeb 56a7a57654 Merge pull request #43 from jmparsons/pods-ignore
Updated pods fix.
2019-07-08 21:31:36 +02:00
Jonathan Parsons b009ff628d Updated pods fix. 2019-07-08 15:28:25 -04:00
Emin Khateeb f770415db3 Merge pull request #41 from sambokai/patch-1
Add Pods folder to .gitignore
2019-07-08 19:06:47 +02:00
Sam Bokai 88a5fc6ad6 Add Pods folder to .gitignore 2019-07-07 23:07:20 +02:00
Emin Khateeb 049943c7bd trying different approach for conditional deployments 2019-07-05 09:01:45 +02:00
Emin Khateeb 990f52d702 removed note again as it's not yet working 2019-07-05 08:52:52 +02:00
Emin Khateeb 76e0acdb31 added usage guide for new cli version 2019-07-05 08:38:41 +02:00
Emin Khateeb 7947ef1d36 added note about different cli versions 2019-07-05 08:30:13 +02:00
Emin Khateeb de9d3f0804 updated travis config to support cli v2 2019-07-05 08:22:34 +02:00
7 changed files with 572 additions and 373 deletions

No files matched your search

+13 -10
View File
@@ -1,14 +1,17 @@
language: node_js
node_js:
- "node"
cache:
directories:
- "node_modules"
deploy:
on:
branch: master
tags: true
provider: npm
email: "emin@emin.ch"
api_key: "${NPM_TOKEN}"
skip_cleanup: true
- provider: npm
on:
condition: $TRAVIS_BRANCH == "master" && -n $TRAVIS_TAG
email: "emin@emin.ch"
api_key: "${NPM_TOKEN}"
skip_cleanup: true
- provider: npm
on:
condition: $TRAVIS_BRANCH == "master-cli-v2" && -n $TRAVIS_TAG
email: "emin@emin.ch"
api_key: "${NPM_TOKEN}"
skip_cleanup: true
tag: next
+21 -2
View File
@@ -1,9 +1,9 @@
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
*
* Generated with the TypeScript template
* https://github.com/emin93/react-native-template-typescript
* https://github.com/react-native-community/react-native-template-typescript
*
* @format
*/
@@ -27,6 +27,8 @@ import {
} from 'react-native/Libraries/NewAppScreen';
const App = () => {
const usingHermes = typeof HermesInternal === 'object' && HermesInternal !== null;
return (
<Fragment>
<StatusBar barStyle="dark-content" />
@@ -35,6 +37,11 @@ const App = () => {
contentInsetAdjustmentBehavior="automatic"
style={styles.scrollView}>
<Header />
{!usingHermes ? null : (
<View style={styles.engine}>
<Text style={styles.footer}>Engine: Hermes</Text>
</View>
)}
<View style={styles.body}>
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>Step One</Text>
@@ -73,6 +80,10 @@ const styles = StyleSheet.create({
scrollView: {
backgroundColor: Colors.lighter,
},
engine: {
position: 'absolute',
right: 0,
},
body: {
backgroundColor: Colors.white,
},
@@ -94,6 +105,14 @@ const styles = StyleSheet.create({
highlight: {
fontWeight: '700',
},
footer: {
color: Colors.dark,
fontSize: 12,
fontWeight: '600',
padding: 4,
paddingRight: 12,
textAlign: 'right',
},
});
export default App;
+2
View File
@@ -4,6 +4,8 @@ Contributing to this project should be as easy and transparent as possible.
## Workflow
Right now there are two master branches in order to keep support for the old React Native CLI (for more info, check out the [related issue](https://github.com/react-native-community/react-native-template-typescript/issues/39)).
We use [GitHub Flow](https://guides.github.com/introduction/flow/), so all code changes happen through pull requests.
1. Fork the repository and create your branch from `master`.
+8
View File
@@ -25,6 +25,14 @@
## :arrow_forward: Usage
### React Native >= 0.60
```sh
npx react-native init MyApp --template react-native-template-typescript@next
```
### React Native <= 0.59
```sh
react-native init MyApp --template typescript
```
+3
View File
@@ -58,3 +58,6 @@ buck-out/
# Bundle artifact
*.jsbundle
# CocoaPods
/ios/Pods/
+524 -360
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -25,6 +25,6 @@
},
"homepage": "https://github.com/emin93/react-native-template-typescript#readme",
"devDependencies": {
"standard": "12.0.1"
"standard": "13.0.2"
}
}