-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Screens for searching the explore page (#80)
Co-authored-by: aravgoyal <[email protected]> Co-authored-by: Ryan Saperstein <[email protected]>
- Loading branch information
1 parent
ba39f0a
commit 0d7cd5b
Showing
40 changed files
with
2,994 additions
and
2,240 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
module.exports = function (api) { | ||
api.cache(true); | ||
return { | ||
presets: ['babel-preset-expo', '@babel/preset-typescript'], | ||
plugins: [ | ||
'@babel/plugin-transform-react-jsx', | ||
'nativewind/babel', | ||
[ | ||
'module:react-native-dotenv', | ||
{ | ||
moduleName: '@env', | ||
path: '.env', | ||
}, | ||
], | ||
], | ||
}; | ||
}; | ||
module.exports = function (api) { | ||
api.cache(true); | ||
return { | ||
presets: ['babel-preset-expo', '@babel/preset-typescript'], | ||
plugins: [ | ||
'@babel/plugin-transform-react-jsx', | ||
'nativewind/babel', | ||
[ | ||
'module:react-native-dotenv', | ||
{ | ||
moduleName: '@env', | ||
path: '.env', | ||
}, | ||
], | ||
], | ||
}; | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
import React from 'react'; | ||
import { View, ViewProps } from 'react-native'; | ||
import { styled } from 'nativewind'; | ||
import { cva, type VariantProps } from 'class-variance-authority'; | ||
|
||
const StyledView = styled(View); | ||
|
||
const cardVariants = cva('bg-white rounded-[16px] border border-border p-4', { | ||
variants: {}, | ||
defaultVariants: {}, | ||
}); | ||
|
||
interface CardProps extends ViewProps, VariantProps<typeof cardVariants> { | ||
children: React.ReactNode; | ||
} | ||
|
||
export function Card({ children, className, ...props }: CardProps & { className?: string }) { | ||
return ( | ||
<StyledView className={`${cardVariants()} ${className || ''}`} {...props}> | ||
{children} | ||
</StyledView> | ||
); | ||
} | ||
|
||
export default Card; | ||
import React from 'react'; | ||
import { View, ViewProps } from 'react-native'; | ||
import { styled } from 'nativewind'; | ||
import { cva, type VariantProps } from 'class-variance-authority'; | ||
|
||
const StyledView = styled(View); | ||
|
||
const cardVariants = cva('bg-white rounded-[16px] border border-border p-4', { | ||
variants: {}, | ||
defaultVariants: {}, | ||
}); | ||
|
||
interface CardProps extends ViewProps, VariantProps<typeof cardVariants> { | ||
children: React.ReactNode; | ||
} | ||
|
||
export function Card({ children, className, ...props }: CardProps & { className?: string }) { | ||
return ( | ||
<StyledView className={`${cardVariants()} ${className || ''}`} {...props}> | ||
{children} | ||
</StyledView> | ||
); | ||
} | ||
|
||
export default Card; |
This file contains 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 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.