PDF React Native in Action Developing iOS and Android apps with JavaScript 1st Edition Nader Dabit download
PDF React Native in Action Developing iOS and Android apps with JavaScript 1st Edition Nader Dabit download
com
https://textbookfull.com/product/react-native-in-
action-developing-ios-and-android-apps-with-
javascript-1st-edition-nader-dabit-2/
https://textbookfull.com/product/react-native-in-action-developing-
ios-and-android-apps-with-javascript-1st-edition-nader-dabit-2/
textbookfull.com
https://textbookfull.com/product/fullstack-react-native-create-
beautiful-mobile-apps-with-javascript-and-react-native-5th-edition-
devin-abbott/
textbookfull.com
https://textbookfull.com/product/learning-react-native-building-
native-mobile-apps-with-javascript-2nd-edition-bonnie-eisenman/
textbookfull.com
https://textbookfull.com/product/pope-francis-as-a-global-actor-where-
politics-and-theology-meet-1st-edition-alynna-j-lyon/
textbookfull.com
Overview of Industrial Process Automation, Second Edition
K.L.S. Sharma
https://textbookfull.com/product/overview-of-industrial-process-
automation-second-edition-k-l-s-sharma/
textbookfull.com
https://textbookfull.com/product/prairie-imperialists-the-indian-
country-origins-of-american-empire-katharine-bjork/
textbookfull.com
https://textbookfull.com/product/the-tea-party-and-the-remaking-of-
republican-conservatism-theda-skocpol/
textbookfull.com
https://textbookfull.com/product/the-specter-of-hypocrisy-testing-the-
limits-of-moral-discourse-raphael-sassower/
textbookfull.com
https://textbookfull.com/product/gerontorheumatology-1st-edition-
jozef-rovensky-eds/
textbookfull.com
Rx.NET in Action with Examples in C# 1st Edition Tamir
Dresher
https://textbookfull.com/product/rx-net-in-action-with-examples-
in-c-1st-edition-tamir-dresher/
textbookfull.com
MANNING Developing iOS and Android apps with JavaScript
Nader Dabit
React Native in Action
React Native in Action
Developing iOS and Android apps with JavaScript
NADER DABIT
MANNING
Shelter Island
For online information and ordering of this and other Manning books, please visit www.manning.com.
The publisher offers discounts on this book when ordered in quantity.
For more information, please contact
Special Sales Department
Manning Publications Co.
20 Baldwin Road
PO Box 761
Shelter Island, NY 11964
Email: [email protected]
No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form
or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the
publisher.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed
as trademarks. Where those designations appear in the book, and Manning Publications was aware of a
trademark claim, the designations have been printed in initial caps or all caps.
∞ Recognizing the importance of preserving what has been written, it is Manning’s policy to have the books
we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our
responsibility to conserve the resources of our planet, Manning books are printed on paper that is at
least 15 percent recycled and processed without the use of elemental chlorine.
ISBN: 9781617294051
Printed in the United States of America
1 2 3 4 5 6 7 8 9 10 – SP – 24 23 22 21 20 19
brief contents
Part 1 Getting started with React Native.......................... 1
1 ■ Getting started with React Native 3
2 ■ Understanding React 27
3 ■ Building your first React Native app 45
iii
contents
preface xi
acknowledgments xiii
about this book xv
about the author xviii
about the cover illustration xix
React lifecycle 6
4
flow 8 ■
Diffing 8 Thinking in components 9
■
applications 14
v
vi contents
Combining components 21
2 Understanding React
2.1
27
Managing component data using state
Correctly manipulating component state 28
28
4 Introduction to styling
4.1
75
Applying and organizing styles in React Native
Applying styles in applications 76 ■
Organizing
76
5 Styling in depth
5.1
115
Platform-specific sizes and styles 116
Pixels, points, and DPs 116 Creating drop shadows with
■
on the screen with scale, scaleX, and scaleY 128 Using the scale ■
elements along the x- and y-axes with skewX and skewY 132
Transformation key points 134
6 Navigation
6.1
145
React Native navigation vs. web navigation 146
6.2 Building a navigation-based app 146
6.3 Persisting data 159
6.4 Using DrawerNavigator to create drawer-based
navigation 160
7 Animations
7.1
162
Introducing the Animated API 163
viii contents
createAnimatedComponent 178
registering routes 267 Creating the main class for the initial
■
view 267
appendix 281
index 285
preface
I’ve always been fascinated with the idea of mobile application development. Building
mobile apps was one of the reasons I wanted to learn how to code. This fascination has
lead me down many paths, from Objective-C to jQuery mobile to Cordova and now to
React Native.
Because my career has centered around writing JavaScript, I’ve also always been
drawn to technologies that increase my efficiency by using my existing skillset, allowing
me to do more than just web development. Finding ways to be more efficient has been
core to my career when choosing paths to follow and rabbit holes to dive into.
When React Native first landed, I knew that it was going to be something signifi-
cant. There were already thousands of React and JavaScript developers in the world.
React Native gave these developers a way to extend their existing skillset into the realm
of mobile application development in a way that Cordova and other options didn’t,
and also appealed heavily to React developers who were at the time the most rapidly
growing segment of all frontend developers. The framework also delivered a substantial
increase in quality of applications that could be built versus other options available in
the same space.
After writing my first application and shipping it to the app store, I had learned quite
a bit and decided to start answering questions on Stack Overflow. I quickly realized that
I had valuable knowledge I could share, while helping the community as well my career,
so I began hanging out there more and more, answering questions.
I learned a lot while answering these questions, and eventually I made a conscious
decision to specialize 100% in the React Native framework. I heard from many suc-
cessful developers and consultants that specializing had helped them in their careers:
they were more productive, got more business, and could demand a higher rate. So, I
xi
xii preface
decided to try being a specialist for the first time in my career. This decision turned out
to be great for me; I quickly began getting leads for consulting and, later, training.
I’ve watched the React Native framework grow from its infancy to what it is today
and have seen many developers and companies rapidly increase their efficiency and
productivity by taking advantage of what the framework has to offer. I think we’re at an
exciting time for React Native: many Fortune 500 companies and enterprises are pick-
ing it up, finally solidifying it as a first-class choice in their developer toolkits and giving
more confidence to people who are considering betting their companies and applica-
tions on the framework. It will be exciting to watch the framework evolve and to see the
new apps that will be shipped using React Native!
acknowledgments
This is the first time I’ve written a book. It has been a good learning experience,
and also much more work than I anticipated. While I’ve been writing, my career has
changed a couple of times and my obligations along with it, affecting the amount of
time I could commit to the book. Nickie Buckner and Marina Michaels are the reason
this book is complete. If it wasn’t for them, it would have been in editing indefinitely; I
was unable to rewrite a couple of chapters in a reasonable amount of time, and Nickie
stepped up in a huge way to finish the book. Marina also did more than what was called
for in helping the book make it the last 20% of the way as my time became increasingly
constrained.
Thank you to my wife, Lilly, who worked overtime in addition to her already exceed-
ingly high normal duties as I worked late nights in the office and sometimes at home
to write this book. Thank you to my kids, Victor and Eli, who are awesome; I love them
very much. And thank you to my parents for putting me in a position to be able to learn
things and get second, third, and fourth chances at life.
My thanks go to many groups and individuals: to the React Native community and
the React Native team (Jordan Walke, Christopher Chedeau, Adam Wolff, and every-
one at Facebook over the years whom I didn’t mention); to Monte Thakkar, who took
over React Native Elements’ open source while I was writing (and to all React Native
Training open source contributors); to Eric Vicenti and Brent Vatne and all the people
who have worked on Navigation and many other projects I use day to day; to Charlie
Cheever, who has, with Expo, pushed the development of many React Native projects
and, by extension, of Expo, and who has helped many open source projects; to Parasha-
rum N, who has been committed to building things around React Native for years, now
works on React Native at Facebook, and has always been a great asset to the community
xiii
xiv acknowledgments
and ecosystem; to Peter Piekarczyk, Kevin Old, Lee Johnson, Gant Laborde, and Spen-
cer Carli, who have consistently helped with the “React Native Radio” podcast; to Russ
Davis and SchoolStatus, for the opportunity to learn React Native on the job, which is
how I got started with it in the first place; to Orta Therox and the people at Artsy, for
their commitment to the React Native community with their amazing blog and open
source; to Leland Richardson, Devin Abbott, and the team at Airbnb, who gave React
Native a fair shot and contributed extensively to the ecosystem even though the frame-
work didn’t work out for Airbnb in the long run; to the Wix team, who have contributed
many amazing projects to the React Native open source ecosystem; to Mike Grabowski
and Anna Lankauf, of Callstack, for being in charge of releasing React Native open
source, for many contributions to the React Native open source ecosystem, and for col-
laborating with me on things over the years; and to Jason Brown for pushing amazing
blog posts and teaching me about animations early on. I’m sure I left out many people,
and if that person is you, I apologize and thank you for your contribution, as well.
Finally, I want to thank the people at Manning who made this book possible: pub-
lisher Marjan Bace and everyone behind the scenes on the editorial and production
teams. My thanks also to the technical peer reviewers led by Aleksandar Dragosavljević:
Alessandro Campeis, Andriy Kharchuk, Francesco Strazzullo, Gonzalo Barba López,
Ian Lovell, Jason Rogers, Jose San Leandro, Joseph Tingsanchali, Markus Matzker,
Matej Strašek, Mattias Lundell, Nickie Buckner, Olaoluwa Oluro, Owen Morris, Roger
Sperberg, Stuart Rivero, Thomas Overby Hansen, Ubaldo Pescatore, and Zhuo Hong
Wei. On the technical side, my thanks to Michiel Trimpe, who served as the book’s tech-
nical editor; and Jason Rogers, who served as the book’s technical proofreader.
about this book
React Native in Action was written to get you up and running with the React Native
framework as quickly and seamlessly as possible. It uses a combination of real-world
examples, discussions around APIs and development techniques, and a focus on learn-
ing things that will translate into real-world scenarios.
The book begins with an overview of React Native in chapter 1, following by a look
at how React works in chapter 2. From chapter 3 through the end of the book, you
build applications containing functionality you’ll use to build applications in the real
world. The book dives deep into topics such as data architecture, navigation, and ani-
mations, giving you a well-rounded understanding of how to build mobile apps using
React Native.
The book is divided into 4 parts and 12 chapters:
¡ Part 1, “Getting Started with React Native”:
¡ Chapter 1 gets you up and running with React Native by going over what React
Native is, how it works, its relationship with React, and when you might want
to use React Native (and when you might not). This chapter includes an over-
view of React Native’s components, which are at the core of React Native. It
concludes with creating a small React Native project.
¡ Chapter 2 covers state and props: what they are, how they work, and why
they’re important in React Native application development. It also covers the
React Component specification and React lifecycle methods.
¡ In chapter 3, you build your first React Native app—a todo app—from the
ground up, and you’ll learn about using the developer menu in iOS and
Android to, among other things, debug your app.
xv
xvi about this book
¡ Part 2, “Developing Applications in React Native.” With the basics covered, you
can start adding features to your React Native app. The chapters in this part cover
styling, navigation, animations, and elegant ways to handle data using data archi-
tectures (with a focus on Redux):
¡ Chapters 4 and 5 teach you how to apply styles: either in line, with compo-
nents, or in stylesheets that components can reference. Because React Native
components are the main buildings blocks of your app’s UI, chapter 4 spends
some time teaching useful things you can do with the View component. Chap-
ter 5 builds on the skills taught in chapter 4; it covers aspects of styling that
are platform-specific, as well as some advanced techniques, including using
flexbox to make it easier to lay out applications.
¡ Chapter 6 shows how to use the two most-recommended and most-used
navigation libraries: React Navigation and React Native Navigation. We’ll
walk through creating the three main types of navigators—tabs, stack, and
drawer—and discuss how to control the navigation state.
¡ Chapter 7 covers the four things you need to do to create animations, the four
types of animatable components that ship with the Animated API, how to cre-
ate custom animatable components, and several other useful skills.
¡ In chapter 8, we explore handling data with data architectures. Because Redux
is the most widely adopted method of handling data in the React ecosystem,
you’ll use it to build an app. Through doing so, you’ll learn the skills needed
to handle data. You’ll see how to use the Context API and how to implement
Redux with a React Native app by using reducers to hold the Redux state and
delete items from the example app. You’ll also learn how to use providers to
pass global state to the rest of the app, how to use the connect function to
access the example app from a child component, and how to use actions to
add functionality.
¡ Part 3, “API Reference.” React Native offers a wealth of APIs. The chapters in
this part cover cross-platform APIs as well as APIs that are specific to the iOS and
Android platforms:
¡ Chapter 9 explores using React Native’s cross-platform APIs: APIs that can be
used on either iOS or Android to create alerts; detect whether the app is in the
foreground, in the background, or inactive; persist, retrieve, and remove data;
store and update text to the device clipboard; and perform a number of other
useful features.
¡ Chapters 10 and 11 look at React Native’s APIs that are specific to either the
iOS platform or the Android platform.
¡ Part 4, “Bringing It All Together.” This part pulls together everything covered
in the previous chapters—styling, navigation, animations, and some of the
cross-platform components—into a single app:
Visit https://textbookfull.com
now to explore a rich
collection of eBooks, textbook
and enjoy exciting offers!
about this book xvii
¡ Chapter 12 starts by looking at the final design and walking through a basic
overview of what the app will do. Then, you’ll create a new React Native appli-
cation and install the React Navigation library, dive deep into styling both the
components as well as the navigation UI, work with data from external net-
work resources by using the fetch API, and ultimately build out an application
that allows users to view information about their favorite Star Wars characters.
Source code
This book contains many examples of source code, both in numbered listings and
inline with normal text. In both cases, source code is formatted in a fixed-width font
like this to separate it from ordinary text.
In many cases, the original source code has been reformatted; we’ve added line
breaks and reworked indentation to accommodate the available page space in the
book. In rare cases, even this was not enough, and listings include line-continuation
markers (➥).
Additionally, comments in the source code have often been removed from the list-
ings when the code is described in the text. Code annotations accompany many of the
listings, highlighting important concepts.
Source code for the book’s examples is available from the publisher’s website at www.
manning.com/books/react-native-in-action and on GitHub at https://github.com/
dabit3/react-native-in-action.
Book forum
Purchase of React Native in Action includes free access to a private web forum run by
Manning Publications where you can make comments about the book, ask technical
questions, and receive help from the author and from other users. To access the forum,
go to https://livebook.manning.com/#!/book/react-native-in-action/discussion. You
can also learn more about Manning’s forums and the rules of conduct at https://live-
book.manning.com/#!/discussion.
Manning’s commitment to our readers is to provide a venue where a meaningful dia-
logue between individual readers and between readers and the author can take place. It
is not a commitment to any specific amount of participation on the part of the author,
whose contribution to the forum remains voluntary (and unpaid). We suggest you try
asking the author some challenging questions lest his interest stray! The forum and the
archives of previous discussions will be accessible from the publisher’s website as long as
the book is in print.
about the author
Nader Dabit is a developer advocate at AWS Mobile, where he works on tools and ser-
vices to allow developers to build full-stack web and mobile applications using their
existing skillset. He is also the founder of React Native Training and the host of the
“React Native Radio” podcast.
xviii
about the cover illustration
The figure on the cover of React Native in Action is captioned “Insulaire D’Amboine”
or “Islander of Amboine.” The illustration is taken from a nineteenth-century edition
of Sylvain Maréchal’s four-volume compendium of regional dress customs published
in France. Each illustration is finely drawn and colored by hand. The rich variety of
Maréchal’s collection reminds us vividly of how culturally apart the world’s towns and
regions were just 200 years ago. Isolated from each other, people spoke different dia-
lects and languages. Whether on city streets, in small towns, or in the countryside, it
was easy to identify where they lived and what their trade or station in life was just by
their dress.
Dress codes have changed since then and the diversity by region and class, so rich at
the time, has faded away. It is now hard to tell apart the inhabitants of different conti-
nents, let alone different towns or regions. Perhaps we have traded cultural diversity for a
more varied personal life—certainly for a more varied and fast-paced technological life.
At a time when it is hard to tell one computer book from another, Manning cel-
ebrates the inventiveness and initiative of the computer business with book covers
based on the rich diversity of regional life of two centuries ago, brought back to life by
Maréchal’s pictures.
xix
Part 1
C hapter 1 will get you up and running by going over what React Native is,
how it works, what its relationship with React is, and when you might want to use
React Native (and when you might not). This chapter provides an overview of
React Native’s components, which are at the core of React Native. It concludes
with creating a small React Native project.
Chapter 2 covers state and properties: what they are, how they work, and why
they’re important in React Native application development. It also covers the
React Component specification and React lifecycle methods.
In chapter 3, you’ll build your first React Native app—a Todo app—from the
ground up. You’ll also learn about using the developer menu in iOS and Android
for, among other things, debugging apps.
Random documents with unrelated
content Scribd suggests to you:
and help from it after than when actually gazing at it. But if it is to
continue to please us, beauty must bear to be thought about. If we
cannot dwell with satisfaction on the origin or production of the
beautiful object, its beauty ceases to please, we feel it to be
superficial.
This desire for such a harmony in our life and surroundings as will
not alone delight the eye, but will also satisfy and please the mind
and heart, springing as it does from a deeper appreciation of beauty,
will have far-reaching results in the direction of wedding art and
simplicity together. There are many who can no longer enjoy an
artistic life above stairs, undisturbed by the lack of what art could
add, in the life below stairs on which it rests; for they feel that no
beauty in the drawing room can make up for the want of beauty in
the lives of those in the kitchen; no refinement in the study
compensate for the utter lack of it in the workshop. In fact we are
coming to realize that although we may have the right and the
power to create for ourselves a costly palace to dwell in, and to
gather around us all the luxuries and refinements we can think of,
and may moreover have plenty of servants to wait on us and plenty
of labourers to help us to support our costly life; yet art will not
make such a life beautiful, simply because of that want of harmony
between the life and all that goes to support it. However right and
just such a life may be thought to be, it cannot be beautiful.
And so those to whom beauty really appeals are seeking a simpler
form of life, one which need not cost so much of the labour of others
to maintain, or so much of their own to procure. And the more they
come to love & enjoy beauty, the greater must this tendency to
simplicity of life become, not from any virtue or asceticism, but
simply as a matter of choice. Why should one having such tastes
encumber himself with an elaborate household, which but offends
his inner love of harmony, and takes his time and energy from the
enjoyment of so much greater pleasure? He knows that the art in a
picture belongs to all who can appreciate it, not solely to the
purchaser of it, who buys not the art but the right to shut it up; and
he realizes that the beauty of a landscape is a pleasure open to all
who can see it, and that it cannot be conveyed in the title deed.
Such an one does not barter away his time and his freedom to enjoy
these solid pleasures, for the sake of a fine house, fine society, or
any other fictitious refinements. He minds not how simple his
surroundings, if only he may be able to dwell in thought on
everything he handles or sees about him without any painful
suggestion of drudgery in the making of them, or squalor in the
maintaining of them, marring his pleasure in their simple elegance.
The most humble house will content him, so only he may have time
and quiet to appreciate the beauties of nature and art, and
opportunity for the sharing with others of like taste the enjoyment of
these things. For the love of beauty is not selfish, it grows by
sharing: we all love to make others see the beauty that we enjoy.
It is true that such a man may be fastidious, that he may hate all
ugly or sordid things, and may demand that everything he has shall
be the best of its kind. But this must not be confounded with a
desire for many things, or a dislike of simple ones. The musician too,
is hurt by harsh sounds and requires his music to be of the best, but
he does not ask that an orchestral concert shall be for ever going
on.
This general dependence of beauty on simplicity, at any rate in the
private dwelling house, is of special interest to those whose function
it is to give an artistic setting to the lives of clients by so designing
their homes that they shall be comfortable for those who are to
occupy them and comely for all who shall behold them. The architect
is astonished to find how very conventional generally are the reasons
which dictate the size and arrangement of the house. He is
impressed by the great difference that exists between what are
considered to be suitable houses for different classes of people: and
he begins to wonder whether there are not discoverable some
factors determining what is a suitable size for a man’s shell having
more intimate relation to his life than the depth of his pocket, or
some reason for its form and adornment less conventional than
those usually accepted.
For example, an architect receives a commission to design some
labourers’ cottages. The cost is the first stipulation: this must be low
enough for the cottages to yield a fair return on the outlay when let
at such rents as the labourers can afford to pay out of their present
wages. Probably the next stipulation is that each house must have a
parlour, kitchen, and three bedrooms. The usual result of such
instructions is a design for a row of cottages, all alike, each having a
small parlour in front with a front door into it, a kitchen behind—it is
well if this is not smaller still—with the stairs going up between the
two and a little larder under: the kitchen has a back door leading
into the yard, a sink under the only window, and a copper between
that and the fire. Here we have as the living-room for a family a
place twelve to fifteen feet square, containing three doors, a sink,
and a copper. True there is a sitting-room; but that is of little use.
The occupants will have neither money to find coal for a second fire,
nor energy to keep the fire going and the room tidy for use, nor will
there be any inclination for the family to divide for the little time
they are all at home. But a false convention of respectability
demands this sitting-room; and the stern limits of cost preclude the
possibility of having a scullery or washhouse in addition.
How an architect must wish he could attack this commission from
another standpoint. How he must long to design a house to fit the
habits of life of those who are to occupy it. Then he would work on
quite different lines. Knowing that the family will practically live in
the kitchen, he would think out the space needed to give room for
doing work, taking meals, and resting. He would consider what of
the work which must be done most tends to make the living-room
uncomfortable and dirty; and he would banish that to a scullery or
wash-house. In the living-room he would plan so that there might be
warm seats round the fire in winter, free from draughts, and seats
for summer near the window; a good dresser for work, well lighted
and supplied with cupboards, plate-rack, and perhaps a small
washing-up sink for the crockery. Then he would allow space for a
table for meals, and a few shelves for books; perhaps he might even
find a corner for a piano or desk, in case either should be wanted.
Instead of the sitting-room, he would either build a little den for
quiet reading or writing, if any member of the family desired to
study, or more probably so plan one of the bedrooms that a portion
of it could be made cosy for such a purpose, about the only one for
which a sitting-room would be at all likely to be wanted.
Remembering too that cleanliness has been placed only second
among virtues, and that probably most of the labourers would have
dirty and arduous work, he would contrive to give a bath; and if
nothing better could be done might put it in the scullery. In this way
he would have obtained a cottage as nearly as possible fitted to the
lives of the people. It would take no more daily labour and expense
to keep up than the conventional one, and would not cost such a
great deal more to build—in fact, omitting the bath, and keeping
within the total size, need cost no more.
Perhaps the next commission is for a country house. It is stipulated
that there shall be dining-room, drawing-room, and library, a good
entrance hall and six bedrooms, together with kitchen, scullery, two
servants’ bedrooms, butler’s pantry, china pantry, larder, laundry, a
lavatory and cloak-room on the ground floor, and a bathroom on
each bedroom floor. Such requirements have probably as little real
connection with the lives of the people who are to live in the house,
as the conventions which dictated the two roomed cottage. The size
of the house has more to do with the social position assumed by its
owner, than with the number of his household; and the library quite
as likely is due to the length of his purse, as to the number of his
books or his literary pursuits.
Somewhere between these two extremes must lie the sort of house
which the lover of art and beauty would desire for himself.
Somewhere, in each case, must the two opposing tendencies of
comfort and simplicity meet. Up to a certain point it will add to a
man’s real pleasure in life to enlarge upon the bare shelter of the
labourer’s cottage; but beyond that point any gain there may be will
be too dearly bought. This point is fixed for any individual, but must
of course vary widely with the temperament and circumstances of
each. It is sufficient for our purpose to realize that there is such a
point, and that the development of a man’s love of beauty and art
will in the long run give more and more force to the tendencies
which make for simplicity. Those whose main desire is for beauty in
their lives, are coming to see that to the rational cottage as sketched
above, with its ample living-room and the other absolute necessaries
of a decently comfortable life, they must add with great caution and
reluctance, and only as dictated by really pressing needs. Every
extra room is an added care, means further demands on time and
energy, and makes it harder to maintain the home without
introducing additional inharmonious elements in the way of service.
It is possible, though not easy, to introduce one helper into the
home life on equal terms, but very difficult indeed to do this with
two. The increase of the house must be zealously resisted, if it is to
be kept within the limits of one helper doing a fair share of work.
And not only must the size be watched: the furnishing and
decorating likewise need to be kept simple. It is a good rule in such
a house to add nothing until actually needed, and to think well
whether the pleasure and comfort it can give will repay the care and
dusting it will require.
Working on these lines there will be a good chance that our homes
will grow beautiful, that they will fit our lives and be really filled with
life. When we try how few things we can do with, we also begin to
try how beautiful those few may be made. When we value our time,
and the time of our helpers, by the pleasure which may be had from
a wise use of it, we shall take care that any adornment we have,
shall at least give pleasure equal to any other use we might have
made of the time required to obtain it. Therefore none but good
decoration will tempt us. We shall be content with our bare coloured
walls, until perhaps some artist friend comes along and adorns them
for us with some true ornament, which will be an abiding
satisfaction, not only in the direct suggestion which it conveys, but
also in the memories it revives of a pleasant visit and a guest happy
in a congenial task.
RAYMOND UNWIN.
OF FURNITURE. Part 1.
A lecture given before a gathering of art workers.