-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
35 lines (22 loc) · 792 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { createAppContainer } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack';
import HomeScreen from './src/screens/HomeScreen';
import AddTaskScreen from './src/screens/AddTaskScreen';
import Parse from 'parse/react-native';
import { AsyncStorage } from 'react-native';
Parse.setAsyncStorage(AsyncStorage);
// Parse.initialize("YOUR_APP_ID", "YOUR_JAVASCRIPT_KEY", "YOUR_MASTERKEY")
Parse.initialize('taskList', 'taskMaster', 'taskJSKey');
Parse.serverURL = 'http://192.168.1.130:1337/parse';
const AppNavigator = createStackNavigator({
Home: HomeScreen,
AddTask: AddTaskScreen
},
{
initialRouteName: 'Home',
defaultNavigationOptions: {
title: "Task List Project"
}
}
);
export default createAppContainer(AppNavigator);