[React] react native ๋ ธํธ
- ๋ฅ์ง
- Development
- ๋ถ๋ฅ
- Javascript
- ๋ฑ๋ก์ผ
๊ณต์์ฌ์ดํธ
https://facebook.github.io/react-native/
react-native-icons
https://github.com/oblador/react-native-vector-icons
httpํ์์ผ๋ก api ๋ฐ์ดํฐ ๋ฐ์๋ NETWORK REQUEST FAILED์ค๋ฅ๊ฐ ๋ณ์๋์ ๋์ฒ
http://10minbasics.com/react-native-network-request-failed-fix/
React Style
์น์์ ํํํ ์ ์๋ react-native ์คํ์ผ ์ ์ฅ์
https://github.com/js-next/react-style
fetch() ์ฌ์ฉ์ Network Request Failed ์ค๋ฅ ๋์ฒ๋ฒ
๋ณด์์๋ฒ ๊ด๋ จํด์ ์ค๋ฅ๊ฐ ๋จ๊ธฐ ๋๋ฌธ์ ios/{PROJECT_NAME}/info.plistํ์ผ์ ์์ ํด์ค์ผํ๋ค.
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
http://stackoverflow.com/a/38427829
About UIActionSheet
์ ๊ทธ๋ฆผ๊ณผ ๊ฐ์ ํํ์ ๋ฉ๋ด๋ฅผ UIActionSheet๋ผ๊ณ ํ๋๋ฐ ์ข ์ฐพ์๋ณด๊ฒ ๋์๋ค.
- react native docs
https://github.com/exponent/react-native-action-sheet - ํฌ๋ก์ค ํ๋ซํผ์ผ๋ก ์ฌ์ฉํ ์ ์๋ ์ปดํฌ๋ํธ
https://github.com/exponent/react-native-action-sheet
๊ฐ๋ฐ ๊ด๋ จ ๋ชจ๋ ๋ชจ์
http://suhanlee.github.io/2016/react-native-modules.html
ํ์ํ ๋ชจ๋๋ค์ ๋์ดํด๋์ ๊ธ
๋ฉํฐ๋ผ์ธ ํ ์คํธ ์ ๋ ฅ ์ปดํฌ๋ํธ์์ ๊ฐ๋ณ ๋์ด ๊ตฌํ
https://facebook.github.io/react-native/docs/textinput.html#oncontentsizechange
์์ด๋์ด
onContentSizeChangeprops๋ฅผ ๋ฃ์ด๋ณด๋ฉด ์ฌ์ด์ฆ๊ฐ ๋ณํ ๋๋ง๋ค ํธ์ถ๋๋๊ฒ์ ํ์ธํ ์ ์๋ค. ์ฌ๊ธฐ์ ์ฌ์ด์ฆ ๊ฐ์ ๊ฐ์ ธ์ฌ ์ ์๋ค.- ๊ฐ์ ธ์จ ์ฌ์ด์ฆ๊ฐ์ผ๋ก
setState()๋ก ๋์ด๋ฅผ ์ ๋ฐ์ดํธํจ.- state์ ๋์ด๊ฐ์ผ๋ก ์ฌ์ด์ฆ ์ ์ฉํ๊ธฐ
์ด๋ ๊ฒ ์ ์ฉํ๋ฉด ์ค๋ด๋ฆผ์ด ์๊ธธ๋๋ง๋ค ์ ๊ธฐ์ ์ผ๋ก ์ฌ์ด์ฆ๊ฐ ๋ณํ๋๋๊ฒ์ ํ์ธํ ์ ์๋ค.
Component vs PureComponent vs Functional Component
https://www.vobour.com/book/view/j4oN4z3iP4hKdMdEt
React v16.x - createPortal
์ธ๋ถ ์๋ฆฌ๋จผํธ์๋ค ์ปดํฌ๋ํธ๋ฅผ ์ง์ด๋ฃ์ ์ ์๊ณ ์ํธ์์ฉ์ ํ ์ ์์๊ฒ์ด๋ค.
https://reactjs.org/docs/portals.html
๋ฐ๋ชจ๋ฅผ ์กฐ๊ธ ๊ฐ์กฐํด๋ณธ๊ฑฐ: https://codepen.io/redgoose/pen/mBNzZa
0๊ฐ์ ๋๊ธ
๋ฑ๋ก๋ ๋๊ธ์ด ์์ต๋๋ค.