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 { View, SafeAreaView, StyleSheet } from "react-native"; | |
interface AuthProps { | |
header?: React.ReactNode; | |
formContent?: React.ReactNode; | |
} | |
const AuthBackground = (props: AuthProps) => { | |
return ( |
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
module.exports = { | |
stories: [ | |
"./stories/**/*.stories.?(ts|tsx|js|jsx)", | |
"../src/stories/*.stories.?(ts|tsx|js|jsx)", | |
], | |
addons: [ | |
"@storybook/addon-ondevice-controls", | |
"@storybook/addon-ondevice-actions", | |
], | |
}; |
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
npx expo start |
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
export {default} from './.storybook'; |
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
npm i @storybook/react-native | |
npx sb init --type react_native |
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
npx create-expo-app --template |
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, {useMemo} from "react" | |
const App = () => { | |
const [users, setUsers] = React.useState([]) | |
return ( | |
<div></div> | |
) | |
} |
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, { useMemo } from "react"; | |
const App = () => { | |
const [counter, setCounter] = React.useState(0) | |
return ( | |
<div> | |
<button onClick={() => setCount(prevState => prevState + 1)>Click Me<button> | |
<span>{counter}</span> |
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
class VehicleSerializer(serializers.ModelSerializer): | |
image = Base64ImageField(required=True) | |
class Meta: | |
model = Vehicle | |
fields = '__all__' |
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
class Vehicle(models.Model): | |
.... | |
image = models.ImageField(upload_to="vehicle") | |
.... |