Now, it's about time we connect our app to the actual Twitter API, but before we do that, we need to eject from CRNA. Connection to Twitter API will be done by the npm package with native modules dependencies, and we will need to link them properly:
npm run eject
Now, the app will fail if you run it, because as I mentioned earlier, react-native-elements has a dependency on react-native-vector-icons. When we worked inside an environment with expokit installed, all was good, but as soon as we ran eject into react native app, we need to install and link this dependency.
So, let's run this command:
npm i -S react-native-vector-icons
And then link vector icons properly by running:
react-native link
Now we will be able to use icons in the same way we used them earlier.
In our next step, we will switch part of the mocked state to...