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 ReactMarkdown from 'react-markdown'; | |
const _mapProps = (props) => ({ | |
...props, | |
escapeHtml: false | |
}); | |
const Markdown = (props) => <ReactMarkdown {..._mapProps(props)} />; |
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 ReactDOM from 'react-dom'; | |
import Markdown from './Components/Markdown.component'; | |
const content = ` | |
Be **bold** | |
But not too <b>bold</b> | |
`; |
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 ReactMarkdown from 'react-markdown'; | |
import RemarkMathPlugin from 'remark-math'; | |
const _mapProps = (props) => ({ | |
...props, | |
escapeHtml: false, | |
plugins: [ | |
RemarkMathPlugin | |
], |
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 ReactMarkdown from 'react-markdown'; | |
import RemarkMathPlugin from 'remark-math'; | |
import { BlockMath, InlineMath } from 'react-katex'; | |
import 'katex/dist/katex.min.css'; | |
const _mapProps = (props) => ({ | |
...props, | |
escapeHtml: false, | |
plugins: [ |
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 { SafeAreaView } from 'react-native'; | |
import { NavigationContainer } from '@react-navigation/native'; | |
import NavigationStacks from './app/Navigations'; | |
export default function App(): JSX.Element { | |
return ( | |
<SafeAreaView style={{ flex: 1 }}> | |
<NavigationContainer> |
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 axios, { AxiosResponse } from 'axios'; | |
import OAuth from 'oauth-1.0a'; | |
import hmacSHA1 from 'crypto-js/hmac-sha1'; | |
import Base64 from 'crypto-js/enc-base64'; | |
export const config = { | |
WC_BASE_URL: 'http://localhost:8888', | |
WC_API_URL: '/wp-json/wc/v3', | |
WC_CONSUMER_KEY: 'ck_123xxx', | |
WC_CONSUMER_SECRET: 'cs_123xxx' |
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 { | |
Dimensions, | |
StyleSheet, | |
Text, | |
TouchableOpacity, | |
View, | |
ViewStyle | |
} from 'react-native'; | |
import { Button, Card, Icon, Rating } from 'react-native-elements'; |
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 { FlatList, StyleSheet, Text, TextStyle, ViewStyle } from 'react-native'; | |
import ProductItem, { | |
Product | |
} from '../../Components/ProductItem/ProductItem.component'; | |
interface Props { | |
products: Array<Product>; | |
handleProductPress: (id: number) => void; |
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, { PureComponent } from 'react'; | |
import { | |
Dimensions, | |
ImageStyle, | |
Modal, | |
Platform, | |
ScrollView, | |
StyleSheet, | |
Text, | |
TouchableOpacity, |
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 { | |
CartItem, | |
Product | |
} from '../Components/ProductItem/ProductItem.component'; | |
const ADD_TO_CART = 'ADD_TO_CART'; | |
const REMOVE_FROM_CART = 'REMOVE_FROM_CART'; | |
const ADD_QUANTITY = 'ADD_QUANTITY'; | |
const SUB_QUANTITY = 'SUB_QUANTITY'; | |
const RESET_CART = 'RESET_CART'; |
OlderNewer