Universal Links, Deep Links, App Links… This is something I told my client it would it would take one or two days to setup for their app, but it actually took me a week to make it perfect. And it was not a good week, believe me…
That's why I decided to write this article. To never forget.
And to be able to make a two days invoice to my next client, but by spending half a day on the task, not a whole week.
I know a lot of people use Firebase Deep Link. I personally don't like this…
I'm always struggling setting up event listener with redux-saga
, so as I didn't find out some clean example how to set-up an event listener to React Native BackHandler, here is one which might help you — and also help me to remind how I did, as I tend to forget things quickly…
Versions used:
function* backHandlerSaga() {
// handle the backHandler touch here
BackHandler.exitApp();
}export function* saga() {
try {
if (Platform.OS !== 'android') return;
const listenToBackButton = yield call(function() {
return eventChannel(emitter => {
const backHandlerListener = BackHandler.addEventListener('hardwareBackPress', function(e) {
emitter('go go go');
return true;
});
// The subscriber must return an unsubscribe function
return () => {
backHandlerListener.remove();
};
});
});while (true) {
yield take(listenToBackButton);
yield call(backHandlerSaga);
}
} catch (e) {
console.log('error with back handler', e);
}
}
I wanted some notifications for my React Native app, but I thought Push Notifications looked very complicated to setup, with no clear method to explain how to do, deprecated libraries, etc. (now it is clearer for me because I spent a lot of time digging the subject)
So I was quite depressed, because I built a chat in my app, and a chat without Push Notifications is not a…
[EDIT: 2020–12–13] BIG UPDATE of this article
-> use react-native-push-notification in RN App
-> create a copy/pastable NotificationService.js file
If you see anything wrong, please put it in comments, thanks !
If you arrive here, I think you'll know that it's not that easy to find a good tutorial to handle Push Notifications for iOS and Android with React Native. I finally did find some, which helped me to write this complete guide (references are at the bottom of the article).
Expo has done great to help developer creating native apps with react-native.
The Expo Managed Workflow is making it really easy to start a project and getting a production build .ipa or .apk file, but it has some downsides, and especially one : some libs created for React-Native are not available directly through Expo. That is the case of MapBox, which is why I had to have a look at Expo Bare Workflow, a workflow that still give the access to some good features of Expo if you wanted too.
Let’s go through the whole process, from start to deploy.
You might think the text you are reading below is a wishful thinking. I think of it more like profession of faith, but I hope you will take it as it is : a prophecy.
The prophecy is :
Today, big-data is trapped in a vicious circle of mass consumption ; tomorrow, big-data will be a part of a vertuous circle of a responsible and sustainable consumption. Today, the data is created by end-consumer, gathered by companies, sold by them to other companies to sell specific products to targeted end-consumers. Today, data is end-consumer. Tomorrow the companies will spread the…
There are some concepts to understand as soon as possible when people start to learn code in general. One of the most annoying I’ve been through is this :
In lines 1, 3 and 8, are food
, food
and food
all the same ? Well, no. And there appears the biggest misunderstandings of all times.
food
is a variable name.food
is a parameter of digest()
.food
is passed as an argument to the function digest()
. …