React native course part 2

Hi all,

I am trying to get the ‘Notifications’ use case working in the following course.

I executed the following:

  1. I have not changed any code.

1.npm install

  1. expo upgrade

  2. expo start

I get the following error. trying hard to get past this.

Appreciate any inputs on this.
Prasad

Hi,

I got this error after moving components into folders only it was “Check the render method of ‘ListingEditScreen’”.

In the course we moved form components into ‘forms’ and list components into ‘lists’. I thought it would be a good idea to move picker components into ‘picker’ and text components into ‘text’. I spent a while trying to find the issue.

It had nothing to do with ‘ListingEditScreen’. Turns out when VScode auto fixed my imports it imported Text like this

"import Text from '../text'

which should have been this

import { Text } from '../text'

Same thing for TextInput

Only because I moved Text and TextInput into a folder and created a inxed.js file like the one we have in the forms folder.

So the error was correct in that there was a mix up between default and named imports and I had to go through every file finding and fixing these mistakes.

So I would guess vscode “fixed” something for you at some point.