[Check] Android 플랫폼에서만 발생하는 이슈
<Text style={{fontFamily: 'customFontFamily-Bold'}}>
It seems to be
<Text style={{fontFamily: 'customFontFamily-LightItalic'}}>
broken
import React, {useState} from 'react'; | |
import { | |
Animated, | |
Image, | |
ImageBackground, | |
StyleSheet, | |
Pressable, | |
Text, | |
View, | |
} from 'react-native'; |
import { useRef, useEffect } from "react"; | |
/** | |
* debounce: Ensuring that only the last event gets executed after the delay | |
* throttle: Ensuring that only the first event gets executed and subsequent events within the delay period are ignored. | |
*/ | |
type DelayType = "debounce" | "throttle"; | |
/** | |
* The hook is designed to provide a delayed execution of a callback function based on either a debounce or throttle mechanism. |
const renderChildrenWithGap = (): Array< | |
React.ReactChild | React.ReactFragment | React.ReactPortal | |
> | null => { | |
return children | |
? Children.toArray(children).map((child, index) => { | |
return ( | |
<React.Fragment key={index}> | |
{index !== 0 && gap ? ( | |
<View | |
style={{ |
const hexOpacityList = [ | |
'00', | |
'03', | |
'05', | |
'08', | |
'0A', | |
'0D', | |
'0F', | |
'12', | |
'14', |
# first: | |
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
# go to /usr/local/lib and delete any node and node_modules | |
cd /usr/local/lib | |
sudo rm -rf node* |
React.Children.map(children, (child: ReactElement, index) => { | |
const { props } = child; | |
return React.cloneElement(child, { | |
...props, | |
}); | |
}) |
# yarn clean | |
watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && yarn |
// prettier.config.js or .prettierrc.js | |
module.exports = { | |
trailingComma: 'all', | |
arrowParens: 'always', | |
singleQuote: true, | |
jsxSingleQuote: false, | |
bracketSpacing: false, | |
jsxBracketSameLine: true, | |
}; |
{ | |
"terminal.integrated.fontFamily": "D2Coding", | |
"terminal.integrated.fontSize": 14, | |
"editor.tabSize": 2, | |
"editor.renderWhitespace": "all", | |
"[javascript]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"window.zoomLevel": 0, | |
"[json]": { |