React Native Tutorial Step 30 – Adding Location Fields смотреть онлайн
Today, we will need to set up our locations, because what's the point of a dance partners app if we don't know where everybody is?
Let's get started.
========================================================
assets/styles.js
========================================================
// Add this
fixedLabel: {
marginLeft: 0
},
========================================================
src/Containers/Search/Search/Search.js
========================================================
Here's what needs to change here:
- Delete import * as config from '../../../services/config'
- Delete import defaultImage from '../../../assets/profile120x120.png'
- Add city and country as new states to keep track of and move the gender state under the country state.
- Add a new onCountryChange() handler for the new country state.
- Delete all code above the return() in the render function, so that return() is the first line in the render function.
- Delete the View block containing {profilePicture}
- Add Preferred Location block (for city and country) with a Picker for country and an Input field for city.
========================================================
src/containers/User/Profile/Profile.js
========================================================
And the changes here:
- Added address1, address2, city, zip_code, and country to the states.
- Add a new onCountryChange() handler for the new country state.
- Change from user. → this.state. for address1, address2, city, zip_code, and country in this.props.updateUserAttempt.
- Add Your Location block with a Picker for country and an Input field for address1, address2, city, and zip_code.
We define our change handlers within the Input fields for address1, address2, city, and zip_code to reduce the number of handler functions we have to write.
Alright, that's all for today! Quite a bit of coding we've done! You're not burned out yet, are you? ?
Don't forget to join the mailing list and our facebook group below if you need some programming help or some accountability partners (And access to our files used in this tutorial series)!
Accompanying medium article: https://medium.com/@donaldlee50/react-native-tutorial-step-30-d5844ffc0e1a
Don't forget to like, comment, and subscribe!!!
========================================================
Reference Links
========================================================
None!
========================================================
Connect with me!
========================================================
Linkedin: https://www.linkedin.com/in/donaldlee50
Instagram: https://www.instagram.com/donlee50/
Twitter: https://twitter.com/donaldlee50
Youtube: https://youtube.com/coursehack
Mailing List: http://bit.ly/coursehack-mailing-list
Coursehack's Facebook Group: bit.ly/join-coursehack-facebook-group
========================================================
What You're Making - Dancingnomads App
========================================================
Web: https://dancingnomads.com
iOS App (help give it 5 stars?): http://bit.ly/dancingnomads-for-ios
Android App (help give it 5 stars?): http://bit.ly/dancingnomads-for-android
Don't forget to like, comment, and subscribe!
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «React Native Tutorial Step 30 – Adding Location Fields» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.