ChenYilong / ReactNativeDemo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question

ReactNativeDemo

You are asked to write an iOS SDK and an React Native App that uses the SDK.

The SDK should expose a method that generates a random color in either hex or RGB, for example, if you use hex, the random color is a value between #000000 and #FFFFFF.

When the app is initialized it should show an empty white screen. When the user taps on the screen, the app should use the iOS SDK to get a random color value, and change the color of the empty screen with that color.

The completed project should be delivered in a format we can review, such as a github repository.

Answer

https://github.com/ChenYilong

cd ReactNativeDemo
npm start
npx react-native run-ios

or

npx expo run:ios

About

License:MIT License


Languages

Language:Objective-C++ 51.7%Language:Ruby 19.2%Language:Objective-C 11.0%Language:TypeScript 8.8%Language:JavaScript 4.6%Language:Shell 3.8%Language:Swift 0.9%