Skip to content

Commit 03c6094

Browse files
committed
fix example app
1 parent fdafe1b commit 03c6094

File tree

4 files changed

+27
-10
lines changed

4 files changed

+27
-10
lines changed
File renamed without changes.

example/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# React Native File Logger Example
2+
3+
## Installation
4+
5+
Build the lib
6+
7+
```sh
8+
cd ..
9+
npm i
10+
npm run build
11+
```
12+
13+
Build the example app
14+
15+
```sh
16+
cd example
17+
npm i
18+
19+
npm run android
20+
# or
21+
(cd ios && pod install)
22+
npm run ios
23+
```

example/index.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
/**
2-
* @format
3-
*/
4-
5-
import { AppRegistry } from 'react-native';
6-
import { App } from './App';
7-
import { name as appName } from './app.json';
1+
import { AppRegistry } from "react-native";
2+
import { App } from "./App";
3+
import { name as appName } from "./app.json";
84

95
AppRegistry.registerComponent(appName, () => App);

example/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
"scripts": {
66
"android": "react-native run-android",
77
"ios": "react-native run-ios",
8-
"start": "react-native start",
9-
"test": "jest",
10-
"lint": "eslint ."
8+
"start": "react-native start"
119
},
1210
"dependencies": {
1311
"react": "17.0.2",

0 commit comments

Comments
 (0)