app.mp4
Higher Video Quality - Be sure to select the 1080p
Technical test for Visionmate made in 2~3 days by me, Henrique Almeida, aka SrBrahma. Specifications.
The recording of the app made it a bit laggy.
When I was thinking about its color pallete and its UI, I remembered Visionmate has a website and I decided to not only follow its color scheme but to also add its hero video, the diagonal pattern present above the video and its logo.
Project created using my gev npx tool, with the rn
flavor to create React Native projects within a single command with my commonly used configs, such as my eslint-config and directories tree.
I tried to balance the quality and not overdoing it (but still, turned out to be great in just a few days of work!).
yarn install
- Run
npx pod-install
. - https://github.com/oblador/react-native-vector-icons#ios - Only
MaterialCommunityIcons.ttf
is required - https://github.com/react-native-video/react-native-video/blob/master/API.md#ios-installation - May be required
Start Metro with
• yarn start
Run instructions for iOS:
• yarn ios
- or -
• Open TestRN/ios/TestRN.xcodeproj in Xcode or run "xed -b ios"
• Hit the Run button
Run instructions for Android:
• Have an Android emulator running (quickest way to get started), or a device connected.
• yarn android
Also: https://reactnative.dev/docs/running-on-device
-
Uses JSX transform so
import React from 'react'
isn't required: https://aryan-mittal.medium.com/enable-the-new-jsx-transform-in-react-native-0-64-aea4f686a640, facebook/metro#646 (comment) -
Disabled Android's automatic forced dark mode: https://stackoverflow.com/a/64339016
-
We use Fuse.js as the fuzzy-search library. It's great!
-
And FlashList for a FlatList with a way better performance!
-
We use react-native-video@next (v6) since v5 is broken.
-
I haven't tested it on iOS as at the moment I don't have access to XCode and my MacInCloud subscription isn't active.
-
I took advantage of this project and used React-Query v4 to learn about it, still on beta but with relevant improvements. Installation.
-
Do use
npx react-native-asset
for adding fonts to react-native@>0.69