Как вообще возможно писать по-настоящему нативные мобильные приложения на JavaScript? Мы разберем почему React-Native отличается от гибридных и нативных методов разработки и как в результате получается нативное приложение. Работая уже два года с React-Native, я покажу не только общие концепции, но и так-же как эта технология работает изнутри.
Mobile Fest 2018. Илья Иванов. Как React-Native перевернул наше представление о нативных приложениях
1. Absolute Mobile Fest
Kyiv 2018
How React-Native shaped
the way we think about
native apps
Ilya Ivanov
Mobile Team Lead at Ciklum
2. About me
• 2 years in react-native
• 3 years in react
• 7 years in software development
Back-end
Web
front-end
Mobile
front-end
Ilya Ivanov
Kyiv 2018
3. Why this talk
• Show you the core principles behind react-native
• Show why you might want to consider react-native
Kyiv 2018
4. Agenda
• React-Native in the context
• How it works
• Advantages
• Limitations
• How to start
• When to use
Kyiv 2018
15. Agenda
• React-Native in the context
• How it works
• Advantages
• Limitations
• How to start
• When to use
Kyiv 2018
16. Advantages
• Cross-platform native development
• Great development experience
• Prototyping and distribution without XCode or Android Studio
17. Cross-platform native development
• React-Native
• Single project – two native platforms
• React-Native-Web
• Single project – three native platforms
21. You still need to write native code
• It still takes around 5-10% to write Swift/Java code
• Percentage may vary
22. Agenda
• React-Native in the context
• How it works
• Advantages
• Limitations
• How to start
• When to use
Kyiv 2018
23. Bootstrapping your application
react-native init MyApplication
Pros:
• Can use custom native code
create-react-native-app MyApplication
Pros:
• No need to install Android Studio and Xcode
• Can publish your apps to Expo repo
• You can always eject
Cons:
• Need to install Xcode and Android studio
Cons:
• Can’t use custom native code
24. Expo step-by-step guide
• Install Expo on the mobile device
• Install Expo XDE on the dev machine
• Create Expo project
• Scan QR code from the mobile device
• mobile device and dev machine should be in the same network area
• Open project with any IDE or Editor and start coding
25. Agenda
• React-Native in the context
• How it works
• Advantages
• Limitations
• How to start
• When to use
Kyiv 2018
27. Summary
• React-Native in an example of the new ”native” mobile solution
• React-Native converts element hierarchy written in JavaScript into
native views. No HTML/CSS involved
• You can use Expo to create and distribute native solution without
Android Studio or Xcode
Kyiv 2018