chore: updates to make it work with Snack git import

This commit is contained in:
Satyajit Sahoo
2018-06-06 13:08:44 +02:00
parent a218aa0235
commit 42325501e8
3 changed files with 4 additions and 5 deletions

View File

@@ -6,6 +6,7 @@
["module-resolver", {
"alias": {
"react-native-paper": "../src/index",
"react-native-paper/types": "../types",
"react-native-vector-icons": "@expo/vector-icons"
}
}]

View File

@@ -1,6 +1,6 @@
/* @flow */
import Expo, { KeepAwake } from 'expo';
import { KeepAwake } from 'expo';
import * as React from 'react';
import { StatusBar } from 'react-native';
import {
@@ -31,7 +31,7 @@ const App = createDrawerNavigator(
}
);
class PaperExample extends React.Component<{}, State> {
export default class PaperExample extends React.Component<{}, State> {
state = {
theme: DefaultTheme,
};
@@ -62,5 +62,3 @@ class PaperExample extends React.Component<{}, State> {
);
}
}
Expo.registerRootComponent(PaperExample);

View File

@@ -9,7 +9,7 @@
"android": "react-native-scripts android",
"ios": "react-native-scripts ios"
},
"main": "App.js",
"main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
"dependencies": {
"@expo/vector-icons": "^6.3.1",
"color": "^2.0.1",