Android - 왜 left, right대신 start, end를 써야 할까?
·
공부/Android
Android 개발을 하다가 right 또는 left 를 사용하면 위와 같이 노란 경고줄이 생기는 것을 알 수 있다.왜 right와 left보다 start와 end를 사용해야할까? 오늘은 그 이유를 알아볼 것이다.LTR과 RTLLTR은 Left to Right으로 왼쪽에서 오른쪽으로 글자를 읽는 언어를 의미한다. 우리나라 언어를 포함하여 대부분의 나라에서 LTR방식을 사용하고 있다.RTL은 Right to Left으로 오른쪽에서 왼쪽으로 글자를 읽는 언어를 의미한다. 단어를 쓰는 방향은 LTR과 똑같다. 주로 아랍권 나라에서 RTL을 사용하고 있다.자세한 내용은 아래 블로그를 참고하자.https://brunch.co.kr/@tjddms2005/26 start와 end사실 글로벌 런칭을 하지 않는다면 le..
Web - "React does not recognize the customStyle prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase customstyle instead."에러 해결하는 법
·
공부/Web
크롬 개발자 도구에서 Console창을 보니까 이런 이상한 에러가 콘솔창을 도배하고 있었다.React does not recognize the customStyle prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase customstyle instead.customStyle을 React가 못 알아먹고 있으니까 customstyle로 이름을 바꾸라는 소리다. 하지만 소문자로 바꿔도 계속 경고 메세지가 출력된다.이때는 변수 앞에다가 '$'를 붙이면 문제가 해결된다.export const Container = styled.div` ${props =>..
Web - "Assign object to a variable before exporting as module default import/no-anonymous-default-export"에러 해결하는 법
·
공부/Web
이번 포스팅에서는 "Assign object to a variable before exporting as module default import/no-anonymous-default-export"에러를 해결하는 방법을 알려드리겠습니다.아래와 같이 AuthAPI클래스를 생성해서 export해주고 있는데export default new AuthAPI(); 아래와 같이 const변수에 저장한 뒤 export하면 해결됩니다.Object타입일 경우도 마찬가지 입니다.const authApi = new AuthAPI();export default authApi;
CSS - 스크롤 바(Scroll bar) 가리는 법
·
공부/Web
스크롤이 가능하면서 스크롤 바만 보이지 않게 하고 싶은 경우아래와 같이 CSS를 작성하면 된다.-ms-overflow-style: none; /* for Internet Explorer, Edge */scrollbar-width: none; /* for Firefox */overflow-y: scroll;&::-webkit-scrollbar { display: none; /* for Chrome, Safari, and Opera */}-ms-overflow-style은 Internet Explorer와 Edge를 위한 속성이고 scrollbar-width는 Firefox 브라우저를 위한 것이다.&::-webkit-scrollbar는 크롬, 사파리, 오페라 들을 위한 것이다.
hhhello
'분류 전체보기' 카테고리의 글 목록 (16 Page)