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
89 changes: 77 additions & 12 deletions mobile/src/pages/TeacherList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ function TeacherList (){
UIManager.setLayoutAnimationEnabledExperimental(true);
}

const t: Teacher = {
avatar: 'https://avatars1.githubusercontent.com/u/42789344?s=460&u=3a1a13a37fcb2d167d1074fad580c8035891f43a&v=4',
bio: 'eeeeeeeeeeeeeeeeeeeeeeeeeeeee',
cost: 20,
id: 2,
name: 'EEEEEEEEEEEEEEEEEEE',
subject: "fefefefe",
whatsapp: '343423242',
}

const [teachers, setTeachers] = useState([]);

const [isFiltersVisible, setIsFilterVisible] = useState(false);
Expand Down Expand Up @@ -111,22 +121,77 @@ function TeacherList (){
</View>
)}
</PageHeader>
<ScrollView
style={styles.teacherList}

contentContainerStyle={{
paddingBottom: 24,
paddingHorizontal: 14
}}
>
{teachers.map((teacher: Teacher) => {
return (
<View style={styles.teacherList}>
<ScrollView>
{teachers.map((teacher: Teacher) =>{
Comment on lines -114 to +126
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adiciona a ScrollView dentro de uma View, usada para container

<TeacherItem
key={teacher.id}
teacher={teacher}
teacher={teacher}
/>
)})}
})}
<TeacherItem
teacher={t}
/>
<TeacherItem
teacher={t}
/>
<TeacherItem
teacher={t}
/>
<TeacherItem
teacher={t}
/>
<TeacherItem
teacher={t}
/>
<TeacherItem
teacher={t}
/>
<TeacherItem
teacher={t}
/>
<TeacherItem
teacher={t}
/>
<TeacherItem
teacher={t}
/>
<TeacherItem
teacher={t}
/>
<TeacherItem
teacher={t}
/>
<TeacherItem
teacher={t}
/>
<TeacherItem
teacher={t}
/>
<TeacherItem
teacher={t}
/>
<TeacherItem
teacher={t}
/>
<TeacherItem
teacher={t}
/>
<TeacherItem
teacher={t}
/>
<TeacherItem
teacher={t}
/>
<TeacherItem
teacher={t}
/>
<TeacherItem
teacher={t}
/>

</ScrollView>
</View>
</View>
);
}
Expand Down
6 changes: 5 additions & 1 deletion mobile/src/pages/TeacherList/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ const styles = StyleSheet.create({
},

teacherList: {
marginTop: -40
overflow: "hidden",
marginHorizontal: 14,
marginTop: -40,
borderRadius: 7,
paddingBottom: 280,
Comment on lines -11 to +15
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adiciona o borderRadius e overflow hidden na View container

},

searchForm: {
Expand Down