- Build native apps using React.
- Uses native components and APIs.
-
Download and install
node- https://nodejs.org/en/download/ -
Download expo client on your phone (both iOS and Android supported) - https://expo.io/ (skip if you have iOS Simulator / XCode)
-
Download and install Expo XDE desktop (you'll need to complete the free registration) - https://expo.io/ (skip if you have iOS Simulator / XCode)
- Download XCode - https://developer.apple.com/xcode/downloads/
git clone https://github.com/hackerone/WDCDemoApp.git
npm i
npm run ios
npm start
- Open
Expo XDE - Login / Create an account.
Project>Open Project> select the location where you have cloned the code.- Press
sharebutton on the desktop app. This will bring up a QR code. - Open
expoapp on your phone and scan the QR code generated in the desktop app.
EX - 1
- Run the app on simulator or device.
- Modify the Text to say
Hello WebDevCon EU
<div>><View><p>, <h1>, <h2> ..><Text><img/>><Image><input/>><TextInput><button>, <a>><Button>or<TouchableHighlight>
http://facebook.github.io/react-native/docs/getting-started.html
EX - 2
- Make the App's background color
black - Text should be
white - Place the text box to the top. The text must be left aligned.
EX - 3
- Replace the text box with search box.
- Should have a
TextInputcomponent, where the user can type keyword. - Should have a
Buttonwhich saysGo
https://facebook.github.io/react-native/docs/textinput.html
https://facebook.github.io/react-native/docs/button.html
EX - 4
- Display the text entered into the TextBox in the middle of the screen using local state.
- The text in the middle of the screen should update as the user types.
- Replace local state with MobX store.
- https://github.com/mobxjs/mobx
- https://raw.githubusercontent.com/mobxjs/mobx/master/docs/flow.png
EX - 5
- Pressing
GObutton should fetch Giphy results for the keyword entered. - Use
getSearchResultItemsmethod from./utils/apito fetch the results. - Refer to
sampleGiphyResponse.jsonfor the response format.
EX - 6
- Display results as a
FlatList - Display
Imageinstead of plain text.
EX - 7
- Create
Trendingpage. - Use
TabBarto switch betweenHome PageandTrending Page. - Use
home.pngandtrending.pngas icons in theTabBar. - https://reactnavigation.org/
EX - 8
- Populate
Trendingpage with content fromgetTrendingItems