mirror of
https://github.com/zhigang1992/react-native-paper.git
synced 2026-06-11 08:13:29 +08:00
chore: updates to make it work with Snack git import
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
["module-resolver", {
|
||||
"alias": {
|
||||
"react-native-paper": "../src/index",
|
||||
"react-native-paper/types": "../types",
|
||||
"react-native-vector-icons": "@expo/vector-icons"
|
||||
}
|
||||
}]
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user