Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d885abb7ce | ||
|
|
fbe903ad81 | ||
|
|
eff79f6d54 | ||
|
|
d3f6c2e173 |
No files matched your search
@@ -6,7 +6,7 @@
|
||||
* https://github.com/emin93/react-native-template-typescript
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import {
|
||||
Platform,
|
||||
StyleSheet,
|
||||
@@ -22,7 +22,7 @@ const instructions = Platform.select({
|
||||
});
|
||||
|
||||
interface Props {};
|
||||
export default class App extends React.Component<Props> {
|
||||
export default class App extends Component<Props> {
|
||||
render() {
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
|
||||
@@ -6,7 +6,15 @@ const packageJson = require('./package.json');
|
||||
const jestConfig = require('./jest.json');
|
||||
const devDependencies = require('./devDependencies.json');
|
||||
|
||||
const deleteFile = (fileName) => fs.unlinkSync(path.join(process.cwd(), fileName));
|
||||
const deleteFile = (fileName) => {
|
||||
const filePath = path.join(process.cwd(), fileName);
|
||||
|
||||
if (!fs.existsSync(filePath)) {
|
||||
return;
|
||||
}
|
||||
|
||||
fs.unlinkSync(filePath);
|
||||
};
|
||||
const writeFile = (fileName, data) => fs.writeFileSync(path.join(process.cwd(), fileName), data);
|
||||
const isYarnAvailable = () => {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user