react-native

Adding a Splash Screen Image in Xcode

I won't actually cover the entire process to add a splash screen (or "Launch Image") to Xcode. It's already covered in great detail in this post by @spencer_carli. UPDATE: Here's a video of the process: https://www.useloom.com/share/7a51e0ba2ed74da28b41493c6a2c0d6a There is one problem with that post though…

Use Browser's Console Temporary Local Variables in React Native

Have you ever used console.log on a complex object and gone to inspect it in the browser's inspector? Maybe it's so complex you wanted to run JSON.stringify on it so you could analyze it more easily? You can normally do this quite easily by right clicking on the…

Dismissing Keyboards in React Native Views

When using a View in React Native, you don't have any control over the keyboard. So, if the view has an input field and the user taps away from the input field, the keyboard will remain visible. The user has no way to get rid of the keyboard. { failureMessage } { !loggingIn…

Debugging Implicit Returns in ES6

For the last 3.5 years, I've worked on a AngularJS(1.x) project; so, I haven't had lots of opportunity to use many of the new features in ES6. Now that I'm doing React Native work, I've been loving all these new features. However, one thing I really haven't…

Configuring Jest in React Native 0.57.0

I'm trying to get a baseline React Native app setup. Unfortunately, I kept running into problems with configuring Jest. When I run yarn test, I'd get this failure: $ yarn test yarn run v1.6.0 warning ../../../package.json: No license field $ jest FAIL ./App.test.js ‚óŹ Test suite failed to…