diff --git a/app/AddDeleteGroupMembers.js b/app/AddDeleteGroupMembers.js
new file mode 100644
index 0000000..a8176c0
--- /dev/null
+++ b/app/AddDeleteGroupMembers.js
@@ -0,0 +1,117 @@
+import React, { Component } from 'react';
+import { ListView, View, Text, StyleSheet, TouchableOpacity, Button } from 'react-native';
+import AuthAxios from './AuthAxios.js';
+
+export default class GroupMap extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ nonMembers: new ListView.DataSource({
+ rowHasChanged: (row1, row2) => row1 !== row2
+ }),
+ membersToAdd: [],
+ membersToDelete: []
+ };
+ }
+
+ componentWillMount() {
+ AuthAxios({
+ url: `api/nonGroupUsers?name=${this.props.name}`,
+ })
+ .then(({data}) => {
+ this.setState({
+ nonMembers: this.state.nonMembers.cloneWithRows(data),
+ })
+ })
+ .catch(err => {
+ console.log('there was an error in fetching non members', err);
+ });
+ }
+
+ static navigationOptions = ({navigation}) => ({
+ title: 'Add/Delete Friends'
+ });
+
+ render() {
+ return (
+
+ this.renderMembersToBeChanged(rowData)}
+ style={styles.listView}
+ />
+ this.renderNonMembers(rowData)}
+ style={styles.listView}
+ />
+
+ )
+ }
+
+ renderMembersToBeChanged(data) {
+ return (
+
+
+ )
+ }
+
+ renderNonMembers(data) {
+ return (
+
+
+ )
+ }
+};
+
+let styles = StyleSheet.create({
+ container: {
+ flex: 1,
+ flexDirection: 'row',
+ justifyContent: 'center',
+ alignItems: 'center',
+ backgroundColor: '#F5FCFF',
+ },
+ nameContainer: {
+ // justifyContent: 'right',
+ flex: 1,
+ marginBottom: 8,
+ },
+ name: {
+ fontSize: 23,
+ // marginBottom: 8,
+ textAlign: 'center',
+ },
+ year: {
+ textAlign: 'right',
+ },
+ button: {
+ width: 100,
+ height: 81,
+ },
+ listView: {
+ paddingTop: 10,
+ backgroundColor: '#F5FCFF',
+ },
+ separator: {
+ flex: 1,
+ height: StyleSheet.hairlineWidth,
+ backgroundColor: '#8E8E8E',
+ },
+});
\ No newline at end of file
diff --git a/app/AddFence.js b/app/AddFence.js
index 775f7f4..a3d0b4f 100644
--- a/app/AddFence.js
+++ b/app/AddFence.js
@@ -1,7 +1,6 @@
import React, { Component } from 'react';
import { View, Text, StyleSheet, Button, Picker, ListView } from 'react-native';
import {GooglePlacesAutocomplete} from 'react-native-google-places-autocomplete';
-import {endpoint} from './endpoint.js';
import AuthAxios from './AuthAxios.js';
diff --git a/app/AddFriendItem.js b/app/AddFriendItem.js
index 05f9d21..6f7b46d 100644
--- a/app/AddFriendItem.js
+++ b/app/AddFriendItem.js
@@ -1,5 +1,4 @@
import React, { Component } from 'react';
-import {endpoint} from './endpoint.js';
import { View, Text, StyleSheet, Button } from 'react-native';
import AuthAxios from './AuthAxios.js';
diff --git a/app/AddFriendList.js b/app/AddFriendList.js
index 98a43a9..aeb7450 100644
--- a/app/AddFriendList.js
+++ b/app/AddFriendList.js
@@ -1,5 +1,4 @@
import React, { Component } from 'react';
-import {endpoint} from './endpoint.js';
import Contacts from 'react-native-contacts';
import AddFriendItem from './AddFriendItem.js';
import { View, Text, StyleSheet, Button, ListView } from 'react-native';
@@ -18,7 +17,6 @@ export default class AddFriendList extends Component {
};
componentWillMount(){
- console.log("will mount in addfriend")
this.checkPermissionAndGet();
};
@@ -29,7 +27,6 @@ export default class AddFriendList extends Component {
checkPermissionAndGet() {
Contacts.checkPermission( (err, permission) => {
// Contacts.PERMISSION_AUTHORIZED || Contacts.PERMISSION_UNDEFINED || Contacts.PERMISSION_DENIED
- console.log(permission)
if(permission === 'undefined'){
Contacts.requestPermission( (err, permission) => {
// ...
@@ -55,7 +52,6 @@ export default class AddFriendList extends Component {
data: {friends: friends}
})
.then(({data}) => {
- console.log(friends);
let friends = data
friends.sort((a, b) => {
if (a.hasApp && b.hasApp) {
diff --git a/app/AllFriendsList.js b/app/AllFriendsList.js
index 69795c7..7f35f03 100644
--- a/app/AllFriendsList.js
+++ b/app/AllFriendsList.js
@@ -1,6 +1,5 @@
import FriendMap from './FriendMap.js';
import React, { Component } from 'react';
-import { endpoint } from './endpoint.js';
import Contacts from 'react-native-contacts';
import { View, Text, StyleSheet, Button, ListView } from 'react-native';
import AuthAxios from './AuthAxios.js';
@@ -64,22 +63,18 @@ export default class AllFriendsList extends Component {
renderContacts(friend) {
const { navigate } = this.props.navigation;
- // let title = '';
- // if(friend.showSetting === 'pending') { title = 'Pending'; };
- // if(friend.showSetting === 'label') { title = 'Home'; }
- // if(friend.showSetting === 'GPS') { title = 'Office'}
return (