inflearn logo
강의

Khóa học

Chia sẻ kiến thức

Thực tế phát triển ứng dụng React Native cho iOS/Android - Trung cấp

Lưu trữ mã thông báo bằng AsyncStorage (1/2)

this.props.signIn(submittedForm) Error

147

linetrader

1 câu hỏi đã được viết

0

안녕하세요 강사님!! 강의 정말 

잘듣고 있습니다!

 

코드는 그대로 작성했는데 에러가나서 혹시 해결방안좀 제시해 주 실수 있나 싶어서 글올립니다. 

로그인시 에러가 발생합니다.!

 

 

 submitUser = () => {
        // Init.
        let isFormValid = true;
        let submittedForm = {};
        const formCopy = this.state.form;

        for (let key in formCopy) {
            if (this.state.type === '로그인') {
                if (key !== 'confirmPassword') {
                    isFormValid = isFormValid && formCopy[key].valid;
                    submittedForm[key] = formCopy[key].value;
                }
            } else {
                isFormValid = isFormValid && formCopy[key].valid;
                submittedForm[key] = formCopy[key].value;
            }
        }
        if (isFormValid) {
            if (this.state.type === '로그인') {
                this.props.signIn(submittedForm).then(()=>{
                    this.manageAccess();
                })
            } else {
                this.props.signUp(submittedForm).then(()=>{
                    this.manageAccess();
                })
            }
        } else {
            this.setState({
                hasErrors: true
            })
        }
    }

redux firebase react-native

Câu trả lời 0

3-13 리텐션 과제 제출합니다

0

18

2

3-13. 리텐션 연습과제 제출합니다.

0

20

1

'플러터 개발환경 세팅하기' 링크 클릭시, 악성 스크립트 설치 유도 페이지로 이동하니 조심하시길 바랍니다.

0

45

2

miragejs 강의 건

0

41

2

saveToLibraryAsync

0

38

2

최종 과제 제출

0

50

3

Weekly Retention 과제 작성하였습니다.

0

51

2

3-10 강의 14분경 코호트 해석 질문드립니다.

0

64

2

Weekly 및 Monthly Retention 과제 제출합니다.

0

64

2

<div id="banner">배너 이미지</div> 관련 질문

0

34

1

[과제] 퍼널 쿼리 PIVOT 테이블 작성

0

63

2

환불관련 문의 드립니다.

0

169

1

windows 환경 npx pod-install ios 실행 에러

0

1491

1

굳이 react-native-text-truncate를 사용하는 이유가 있나요?

0

299

0

현업에서 action creator 함수가 비동기인 경우가 많이 있나요?

0

212

0

android debugger 연결이 안 됩니다.

0

412

0

클래스형 함수형 질문있습니다

0

246

0

Error: Unable to resolve module ./debugger-ui/debuggerWorker.aca173c4 에러

0

756

0

AsyncStorage를 이용한 Token 읽어오기에서 GetToken이 undefined를 반환합니다.

0

200

0

ios 시뮬레이터 실행 오류 납니다.An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405)

0

4486

1

Could not find "store" in the context of "Connect(AuthForm)"

1

739

1

ReferenceError: Can't find variable: _UIManager 이런 에러가 나는데 혹시 어떻게 해결해야할지 알 수 있을까요?

0

317

0

React Navigation 셋업 오류

0

1286

1

에러가 납니다...

0

561

1