Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions App.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ export default function App() {
<PreferencesContext.Provider value={preferences}>
<PaperProvider theme={newTHeme}>
<NavigationContainer theme={newTHeme}>
<StudentDashboard />
{/* <StudentDashboard /> */}
{/* <TeacherDashboard/> */}
{/* <Admin/> */}
<Admin/>
{/* <BottomNavigation
setSnackMessage={setSnackMessage}
setVisible={setVisible}
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# LMS MobileApp using React-Native framework

## Project structure:

```
.
├── App.js
Expand Down Expand Up @@ -79,7 +80,9 @@
│ └── TeacherDiscussion.js
└── Login
└── Login.js

```

### Setup the project:
- ** You should have node.js & expo-cli installed ** if not run npm install expo-cli
- run git clone {project URL}
Expand Down
3 changes: 2 additions & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"**/*"
],
"ios": {
"supportsTablet": true
"supportsTablet": true,
"bundleIdentifier": "LMS"
},
"android": {
"adaptiveIcon": {
Expand Down
2 changes: 1 addition & 1 deletion screens/Admin/screens/AcceptUser/AcceptUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const styles = StyleSheet.create({
margin: 20,
},
title: {
fontSize: 0,
fontSize: 10,
},
box: {
display: "flex",
Expand Down
15 changes: 11 additions & 4 deletions screens/Admin/screens/AcceptUser/components/StudentsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,31 @@ import { FlatList } from "react-native";

const Header = ({ items, handleCheck, title, index }) => {
return (


<View>
<FlatList
data={items}
extraData={items}
renderItem={(student) => (
renderItem={(student) => ( <TouchableRipple

onPress={()=>handleCheck(student.index, student.item.selected)}
>
<View style={styles.box} key={student.index}>
<Text>{student.item.username}</Text>
<Text>{student.item.name}</Text>
<Checkbox
status={student.item.selected ? "checked" : "unchecked"}
onPress={() => {
console.log("student'", items, student.item.selected);
handleCheck(student.index, student.item.selected);
handleCheck(student.index, student.item.selected);
}}
/>
</View>
</TouchableRipple>
)}
/>
</View>


);
};
export default Header;
Expand Down
3 changes: 2 additions & 1 deletion screens/Admin/screens/AcceptUser/components/TeacherList.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ const Header = ({ items, handleCheck, title, index }) => {
extraData={items}
renderItem={(student) => (
<View style={styles.box} key={student.index}>
<Text>{student.item.username}</Text>
<Text style={{color:"#333"}}>{student.item.name}</Text>
{console.log("student",student)}
<Checkbox
status={student.item.selected ? "checked" : "unchecked"}
onPress={() => {
Expand Down
6 changes: 5 additions & 1 deletion screens/StudentDash/screens/Main/Main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useState, useEffect } from "react";
import { View, StyleSheet, ScrollView } from "react-native";
import { View, StyleSheet, ScrollView ,Text} from "react-native";

import Submit from "../../../../shared/Submit";
import Input from "../../../../shared/Input";
import axios from "axios";
Expand Down Expand Up @@ -80,6 +81,9 @@ export default ({ navigation }) => {

return (
<React.Fragment>
<Text>
HELLO WORLD
</Text>
<Modal
visible={visible}
setVisible={setVisible}
Expand Down