Slide 1

Slide 1 text

Alex Kotliarskyi Building Stellar User Experiences with React Native

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

How do you know ☕ is good?

Slide 4

Slide 4 text

Slide 5

Slide 5 text

Slide 6

Slide 6 text

Expectations

Slide 7

Slide 7 text

Expectations iOS Android Desktop Web Mobile Web Windows Linux

Slide 8

Slide 8 text

Mobile apps have higher
 UX expectations level than Web apps

Slide 9

Slide 9 text

Expectations change

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

iOS Developer Web Developer React ❤ React Native Core Team (3 years) Building apps with RN (F8, Oculus) Alex Kotliarskyi @alex_frantic

Slide 13

Slide 13 text

UIScrollView
 iOS android.widget.ScrollView Android

Slide 14

Slide 14 text

"React Native made me 10x more productive"

Slide 15

Slide 15 text

Android RN iOS time

Slide 16

Slide 16 text

10% is not done

Slide 17

Slide 17 text

Building for is different

Slide 18

Slide 18 text

Slide 19

Slide 19 text

Slide 20

Slide 20 text

Slide 21

Slide 21 text

Text Input Direct Manipulation Animation and Spatial Awareness Loading State UI Library ....

Slide 22

Slide 22 text

It's all simple things

Slide 23

Slide 23 text

...but not very obvious

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

Text Input Direct Manipulation Animation and Spatial Awareness Loading State UI Library

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

this.setState({email})} 
 /> 


Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

10% time 100% done

Slide 32

Slide 32 text

Dismissing keyboard Autofocus Placeholders Space under keyboard Spell checking and auto-capitalization Keyboard type Custom return key

Slide 33

Slide 33 text

this.setState({email})} keyboardAppearance="light" placeholder="name@example.com" autoFocus={true} autoCapitalize="none" autoCorrect={false} keyboardType="email-address" returnKeyType="next" onSubmitEditing={this._focusNext} blurOnSubmit={false} /> 


Slide 34

Slide 34 text

this.setState({email})} 
 /> 


Slide 35

Slide 35 text

Text Input Direct Manipulation Animation and Spatial Awareness Loading State UI Library

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

Direct
 manipulation

Slide 42

Slide 42 text

Direct Manipulation Instant Feedback Physics Touch Targets Ability to Cancel

Slide 43

Slide 43 text

Slide 44

Slide 44 text

https://webkit.org/blog/5610/more-responsive-tapping-on-ios/

Slide 45

Slide 45 text

Slide 46

Slide 46 text

Direct Manipulation Instant Feedback Physics Touch Targets Ability to Cancel

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

Animated.decay() Animated.timing() Animated.spring() https://github.com/wix/react-native-interactable

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

Animated.spring(value, { 
 ... 
 useNativeDriver: true, 
 }).start(); 


Slide 51

Slide 51 text

InteractionManager

Slide 52

Slide 52 text

Direct Manipulation Instant Feedback Physics Touch Targets Ability to Cancel

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

https://material.io/guidelines/usability/accessibility.html#accessibility-style

Slide 56

Slide 56 text

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

Direct Manipulation Instant Feedback Physics Touch Targets Ability to Cancel

Slide 59

Slide 59 text

Button Cancelled

Slide 60

Slide 60 text

Text Input Direct Manipulation Animation and Spatial Awareness Loading State UI Library

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

No content

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

Animation not a luxury

Slide 68

Slide 68 text

Animation a tool

Slide 69

Slide 69 text

iOS Android

Slide 70

Slide 70 text

No content

Slide 71

Slide 71 text

Text Input Direct Manipulation Animation and Spatial Awareness Loading State UI Library

Slide 72

Slide 72 text

Most of web
 is about pages of content

Slide 73

Slide 73 text

No content

Slide 74

Slide 74 text

No content

Slide 75

Slide 75 text

class TaskDetails extends React.Component { 
 props: { id: string }; 
 state = { data: null }; 
 
 componentDidMount() { 
 fetch(`/tasks?id=${this.props.id}`) 
 .then(response => response.json()) 
 .then(data => this.setState({data})); 
 } 
 
 render() { 
 if (!this.state.data) { 
 return 
 } else { 
 return ( 
 ... 
 ); 
 } 
 } 
 } 


Slide 76

Slide 76 text

Loading...

Slide 77

Slide 77 text

No content

Slide 78

Slide 78 text

No content

Slide 79

Slide 79 text

No content

Slide 80

Slide 80 text

class TaskDetails extends React.Component { 
 props: { id: string, data: ?Object }; 
 state = { data: null }; 
 
 componentDidMount() { 
 fetch(`/tasks?id=${this.props.id}`) 
 .then(response => response.json()) 
 .then(data => this.setState({data})); 
 } 
 
 render() { 
 const data = this.state.data || this.props.data; 
 return ( 
 ... 
 ); 
 } 
 } 


Slide 81

Slide 81 text

class TaskListItem extends React.Component { 
 render() { 
 return ( 
 ... 
 
 ... 
 
 ... 
 ); 
 } 
 } 
 500ms

Slide 82

Slide 82 text

DX → UX

Slide 83

Slide 83 text

MobX Relay

Slide 84

Slide 84 text

It Does Not Matter!

Slide 85

Slide 85 text

Go beyond what frameworks provide

Slide 86

Slide 86 text

Text Input Direct Manipulation Animation and Spatial Awareness Loading State UI Library

Slide 87

Slide 87 text

"Building with React Native is so easy,
 we don't need standard components" – Developer

Slide 88

Slide 88 text

Button

Slide 89

Slide 89 text

function Button(props) { 
 return ( 
 
 
 {props.caption} 
 
 
 ); 
 } 


Slide 90

Slide 90 text

10% time 100% done

Slide 91

Slide 91 text

Cross platform Disabled state Icon Fixed height Text wrapping Accessibility Consistency

Slide 92

Slide 92 text

Build your own standard controls

Slide 93

Slide 93 text

Button ✨ ✨

Slide 94

Slide 94 text

Text Input Direct Manipulation Animation and Spatial Awareness Loading State UI Library

Slide 95

Slide 95 text

Experience it on a real device Animation and gestures are essential tools Go beyond what frameworks provide

Slide 96

Slide 96 text

Not rocket science

Slide 97

Slide 97 text

Resources?

Slide 98

Slide 98 text

No content

Slide 99

Slide 99 text

But you can learn to see it

Slide 100

Slide 100 text

You have to care

Slide 101

Slide 101 text

Designers have to care

Slide 102

Slide 102 text

"Stop Drawing Dead Fish" Bret Victor

Slide 103

Slide 103 text

Little details are big

Slide 104

Slide 104 text

Quality is our responsibility

Slide 105

Slide 105 text

Quality defines perception of your business

Slide 106

Slide 106 text

Quality defines perception of React Native ecosystem

Slide 107

Slide 107 text

Build "pit of success" Talk more about User Experience Great examples

Slide 108

Slide 108 text

Thanks! http://frantic.im @alex_frantic ☕