New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to run on recent EXPO SDK #3
Comments
Hi @kopax! It seems like you're on the right direction. I think you're missing the styles for the FlatList and the Parent View that nests the FlatList. You could try adding flex: 1 to both Views and see how that changes the rendering :) |
Wow, thanks for such a quick reply. I was on the point to give up. Should I create a fork with a branch that includes my change? With a little of help, perhaps we can get this repository upgraded. I don't get where are emails, I didn't understand how you were generating the data: https://github.com/ggomaeng/react-native-gmail/blob/master/src/components/mail-list.js#L22 |
I'm glad and am also sorry that I haven't maintained my repositories. This is the least I could do. I haven't touched RN in a very long time so I might be a little rusty, but if you create a fork and link me, I could take a look! |
You rock, I was already creating a fork and started to upgrade expo, I hope you will be able to give a hand. I am opening the PR and update when changes are in. Thanks! |
What are you passing to props.data in the code above? |
As I never tried ListView before, I took this ListView to FlatList upgrade guide: https://medium.com/@jrapala/how-to-replace-a-react-native-listview-component-with-a-flatlist-component-2fe8eaf2e296 Let's continue the discussion in #4 |
Hi @ggomaeng , thanks for sharing this code.
Since the project is quite old and the snack is deprecated, I have tried to copy the components directory in a new expo project (SDK36).
I had to
sed -i 's/exponent/expo/g'
and I replace theListView
with aFlatList
since react-native markeddeprecated-react-native-listview
.My
mail-list.js
look like this:After starting my application, I can see this:
Not what I wanted, could I get some help (whenever you have time) to help me restore the gmail demo?
The text was updated successfully, but these errors were encountered: