Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stack navigator and search screen #114

Merged
merged 21 commits into from
Sep 24, 2020
Merged

Conversation

saihaj
Copy link
Member

@saihaj saihaj commented Sep 17, 2020

Summary of PR

  • Search bar and cancel button for search screen
  • Remove drawer and setup stack navigator

Time spent on PR

6 hours

Linked issues

Building block PR for #98 and eventually #96

Reviewers

@Harjot1Singh

@saihaj saihaj requested a review from Harjot1Singh September 17, 2020 21:44
Copy link
Member

@Harjot1Singh Harjot1Singh left a comment

Choose a reason for hiding this comment

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

Great effort overall!

.eslintrc Outdated Show resolved Hide resolved
src/components/BackButton.tsx Outdated Show resolved Hide resolved
src/components/BackButton.tsx Show resolved Hide resolved
src/components/BackButton.tsx Outdated Show resolved Hide resolved
src/components/BackButton.tsx Outdated Show resolved Hide resolved
src/components/Container.tsx Outdated Show resolved Hide resolved
src/components/Search.tsx Outdated Show resolved Hide resolved
src/components/Search.tsx Outdated Show resolved Hide resolved
src/components/Search.tsx Outdated Show resolved Hide resolved
src/screens/SearchScreen.tsx Outdated Show resolved Hide resolved
@saihaj saihaj requested a review from Harjot1Singh September 18, 2020 02:44
@Harjot1Singh
Copy link
Member

Harjot1Singh commented Sep 18, 2020 via email

react-native-safe-area context adds to much and we lose control over changing color of status bar.

Check slack thread for screenshots https://shabados.slack.com/archives/CD41G8413/p1600273582403700

Resource: https://stackoverflow.com/a/52458846/11321732
src/themes/colors.ts Outdated Show resolved Hide resolved
src/components/Search.tsx Outdated Show resolved Hide resolved
src/components/Container.tsx Outdated Show resolved Hide resolved
src/components/Search.tsx Outdated Show resolved Hide resolved
@@ -21,10 +31,10 @@ type SearchBarProps = {

const SearchBar = ( { handleTextChanges }: SearchBarProps ) => (
<View style={styles.searchBar}>
<Icon name="magnify" size={25} />
<Icon name="magnify" size={25} style={styles.centered} />
<TextInput
placeholder="Koj"
Copy link
Member

Choose a reason for hiding this comment

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

@bhajneet do we want to bake in internationalisation from the start? This would be an example of where to start.

Copy link
Member Author

Choose a reason for hiding this comment

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

Related #39

Copy link
Member

Choose a reason for hiding this comment

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

Yes absolutely, how can I help?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think search screen cannot be a candidate yet since we will only support Punjabi search. Having that screen internationalized won’t make much sense unless we figure out how to convert search into languages we support with internationalization.

Copy link
Member

Choose a reason for hiding this comment

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

The placeholder can be "Search" or "Khoj" or whatever language is chosen.

src/components/ShortcutDrawer/Icons.android.tsx Outdated Show resolved Hide resolved
src/screens/SearchScreen.tsx Outdated Show resolved Hide resolved
@saihaj saihaj requested a review from Harjot1Singh September 18, 2020 21:17
Co-authored-by: Harjot Singh <contact@harjot.me>
src/screens/SearchScreen.tsx Outdated Show resolved Hide resolved
src/themes/utils.ts Outdated Show resolved Hide resolved
src/themes/utils.ts Outdated Show resolved Hide resolved
@saihaj saihaj requested a review from Harjot1Singh September 22, 2020 18:06
src/themes/utils.ts Outdated Show resolved Hide resolved
src/themes/utils.ts Outdated Show resolved Hide resolved
src/components/Search.tsx Outdated Show resolved Hide resolved
src/components/Search.tsx Outdated Show resolved Hide resolved
src/themes/utils.ts Outdated Show resolved Hide resolved
saihaj and others added 2 commits September 24, 2020 14:06
https: //github.com/conventional-changelog/commitlint/tree/master/@commitlint/config-conventional#body-max-line-length
Co-Authored-By: Harjot Singh <contact@harjot.me>
@saihaj saihaj requested a review from Harjot1Singh September 24, 2020 19:14
Copy link
Member

@Harjot1Singh Harjot1Singh left a comment

Choose a reason for hiding this comment

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

Very happy with this, good work!

@Harjot1Singh Harjot1Singh merged commit c0cf399 into shabados:dev Sep 24, 2020
@Harjot1Singh Harjot1Singh deleted the styleSearchScreen branch September 24, 2020 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants