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
import { FC } from "react"; | |
import { View, StyleSheet } from "react-native"; | |
interface Props<T> { | |
data: T[]; | |
renderItem(item: T): JSX.Element; | |
col?: number; | |
} | |
const GridView = <T extends any>(props: Props<T>) => { |
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
import { | |
Box, | |
BoxShadow, | |
Canvas, | |
Fill, | |
Image, | |
ImageFormat, | |
Mask, | |
rect, | |
rrect, |
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
import { NextApiHandler, NextApiRequest } from "next"; | |
import formidable from "formidable"; | |
import path from "path"; | |
import fs from "fs/promises"; | |
export const config = { | |
api: { | |
bodyParser: false, | |
}, | |
}; |
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
import { FC } from "react"; | |
import { BsTypeBold } from "react-icons/bs"; | |
import ToolTip from "./ToolTip"; | |
interface Props {} | |
const App: FC<Props> = (props): JSX.Element => { | |
return ( | |
<div className="mx-auto max-w-3xl p-10"> | |
<ToolTip tooltip="I am tooltip"> |
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
import React from "react"; | |
export default function App() { | |
return ( | |
<div className="bg-blue-400 bg-opacity-30"> | |
<div className="max-w-3xl mx-auto"> | |
<div className="text-center py-3"> | |
<button className="bg-red-400 text-white px-3 py-2 rounded hover:scale-95 transition text-xl"> | |
Open Modal | |
</button> |
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
import React from 'react'; | |
import {ImageBackground, ScrollView, View} from 'react-native'; | |
import CommentInput from './components/CommentInput'; | |
export default function App() { | |
return ( | |
<> | |
<ImageBackground | |
style={{flex: 1, opacity: 0.2}} | |
source={{ |