IT/react native
[react native] TypeError: this.setState is not a function.
[react native] TypeError: this.setState is not a function.
2020.12.31TypeError: this.setState is not a function. export default class App extends Component { this.state = { data : '' } ... getItem = () => { return new Promise(function (resolve, reject) { axios .get('https://example.com') .then(function (response){ resolve(response) }) .catch(function (error){ reject(error) }); }; }; loadItem = () => { this.getItem() .then(function (items){ this.setState({ { const..
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default a..
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default a..
2020.12.23Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. 컴포넌트 최근에 추가한 것들 다시한번 살펴보자 나같은 경우 import { AppLoading } from 'expo-app-loading' 으로 썼다 expo-app-loading 에는 default export 로 되어있는데..
Something went wrong installing the "sharp" module
Something went wrong installing the "sharp" module
2020.12.23Something went wrong installing the "sharp" module dlopen(/Users/maani/Documents/react native/nexseat/node_modules/sharp/build/Release/sharp.node, 1): Library not loaded: @rpath/libvips-cpp.42.dylib Referenced from: /Users/maani/Documents/react native/nexseat/node_modules/sharp/build/Release/sharp.node Reason: image not found - Remove the "node_modules/sharp" directory, run "npm install" and loo..
[xcode] expo-updates must be configured with a valid update URL or scope key. exception 오류
[xcode] expo-updates must be configured with a valid update URL or scope key. exception 오류
2020.12.18expo-updates must be configured with a valid update URL or scope key. exception expo eject 후 ios 폴더 안에 프로젝트 폴더 안에 보면 Supporting / Expo.plist 열어보면 하나 추가하자 공백에 우클릭 하고 Add Row EXUpdatesURL 에 String Value는 https://example.com
[React Native] currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput
[React Native] currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput
2020.11.20currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput - node_modules\react-native\Libraries\LogBox\LogBox.js:148:8 in registerError - node_modules\react-native\Libraries\LogBox\LogBox.js:59:8 in errorImpl - node_modules\react-native\Libraries\LogBox\LogBox.js:33:4 in console.error - node_modules\expo\build\environment\react-native-logs.fx.js:27:4 ..
#1. react native 시작하기
#1. react native 시작하기
2020.09.231. 운영체제 Windows 10 1809 2. Node.js / npm https://nodejs.org/ko/ Node.js Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. nodejs.org node.js 를 설치하면 npm은 자동으로 설치된다. 3. VSC https://code.visualstudio.com/docs/?dv=win Documentation for Visual Studio Code Find out how to set-up and get the most from Visual Studio Code. Optimized for building and debugging modern web and cloud a..