-
Notifications
You must be signed in to change notification settings - Fork 0
Typescript Migration - Front End #15
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
Open
marked01one
wants to merge
37
commits into
main
Choose a base branch
from
typescript_migration_frontend
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 20 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
e597bda
Created a sample EventCard component
marked01one 1f686aa
Implemented a sample profile picture stack
marked01one a0e0d64
Implemented overlapped profile pic icons for the component
marked01one ef7eb40
Refactor and clean up the EventCard
marked01one a0fbd9c
Added a functional 'Going' button. Currently returns an alert.
marked01one 9b5e872
Changed the naming for the EventCard sub-components
marked01one 522df3f
Changed properties based to reviews
marked01one fff48a9
Updated constants.js to eliminate merge conflict
marked01one adff80d
Removed react-native-elements from project & refactored code accordingly
marked01one d000fe3
Merging main into typescript_migration_frontend
marked01one 892bfd2
Initialized project with tsconfig.json
marked01one ff5ad43
Completed translation to TypeScript for EventCard
marked01one 1adf9af
Migrated explore folder and additional files
GuyWhoCode dd83a8f
Added absolute pathing compiler option
GuyWhoCode 10d245d
TypeScript Migration March 3rd 2023
marked01one 7087cf0
Completed migration for front-end (for now)
marked01one 89ffcbb
Added type to fix rendering
GuyWhoCode a19ec0e
Updated tsconfig.json
marked01one 235e42a
Merge branch 'typescript_migration_frontend' of https://github.com/cp…
marked01one af480cf
Change Root.js to Root.tsx
marked01one 7ec449a
chore(typescript_migration): fixed file name typos
lxkedinh 7654ead
Fixed issues with constants.ts and improve code styling
marked01one 07bbd09
Fixed issues with constants.ts and improve code styling
marked01one e85c1ef
Merge branch 'main' into typescript_migration_frontend
nappalion e258c2d
feat(text-input): migrate TextInput file into typescript
nappalion f9842ef
feat(groups): migrate group components to typescript
nappalion 13c74d5
feat(feed): migrate feed screen to typescript
nappalion 3387a30
feat(landing): migrate landing screens to typescript
nappalion 558376e
feat(jest): migrate jest and other misc files to typescript
nappalion f56598b
fix(prop-types): remove unnecessary prop-types
nappalion 46bcfba
feat(es-lin): add packages and config files for
nappalion e147acf
fix(feed-drawer): fix props.getItem unknown error for FlatList
nappalion f12caab
fix(eslint): fix cannot read file ‘../tsconfig.json’ eslint error
nappalion b58dccc
fix(typescript/eslint): apply fixes to typescript/eslint errors
nappalion 670a649
fix(metro): ts is not supported for metro files
nappalion 30dc02b
fix(config): fix eslint and typescript errors in config files
nappalion f8cef42
Merge branch 'main' into typescript_migration_frontend
nappalion File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import React from 'react'; | ||
| import { Button as RNButton, NativeSyntheticEvent, NativeTouchEvent, ColorValue } from 'react-native'; | ||
|
|
||
| type ButtonProps = { | ||
| title: string; | ||
| onPress: (ev: NativeSyntheticEvent<NativeTouchEvent>) => void; | ||
| color?: ColorValue | undefined; | ||
| accessibilityLabel?: string | undefined; | ||
| disabled?: boolean | undefined; | ||
| } | ||
|
|
||
|
|
||
| function Button(props: ButtonProps) { | ||
| return <RNButton {...props} />; | ||
| } | ||
|
|
||
| export default Button; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| import React from "react"; | ||
| import { StyleSheet, Image, ImageSourcePropType } from "react-native"; | ||
|
|
||
| export type FaceIconProps = { | ||
| index: number; | ||
| iconUrl: string | ||
| } | ||
|
|
||
|
|
||
| const FaceIcon: React.FC<FaceIconProps> = ({index, iconUrl}) => { | ||
|
|
||
| return <Image source={{ uri: iconUrl }} key={index} | ||
| style={{ | ||
| height: 36, | ||
| width: 36, | ||
| borderRadius: 18, | ||
| transform: [{translateX: 30 - index * 20}] | ||
| }}/> | ||
| }; | ||
|
|
||
|
|
||
| export default FaceIcon; | ||
|
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions
8
packages/app/components/Screen.js → packages/app/components/Screen.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
nappalion marked this conversation as resolved.
Show resolved
Hide resolved
|
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
nappalion marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.