Love Coding – programming blog
Joanna
How to set div to 100% window height?
Tworząc strony internetowe zdarza się, że chcemy, aby div z określonymi informacjami zajmował całą wysokość okna, niezależnie od wysokości tego okna. Wiadomo, że ustawiając wysokość dziecka na 100% zajmuje ono całą przestrzeń swojego rodzica. Zatem aby div zajmował całą wysokość okna, wszyscy jego rodzice muszą także mieć ustawioną taką wysokość. When we create websites, we […]
Read more
Joanna
How to center div horizontally and vertically in css
The problem of centering divs or text is quite common and I often had to spend more time fixing it than I would like. Sometimes the situation is simple and using one of the basic methods, like margin: 0 auto solves the case, and sometimes you have to think a little more. Therefore, below are […]
Read more
Joanna
How to check if string contains substring in javascript
Depending on what you currently want to achieve, you can use several solutions to check if the string contains substring:
Read more
Joanna
How to copy an array in javascript?
We have array [“javascript”, “jest”, “fajny”, 1, 2, 3]. Let’s see what’s happends, if we want to copy it and assign it do variable, and next modify it:
Read more
Joanna
How to sort array of numbers in javascript?
By sorting an array of numbers and using the built-in sort() function, you’ll definitely notice that, by default, sorting doesn’t go from smallest to largest, but alphabetically.
Read more
Joanna
How to clear (remove all items from) array in javascript?
Joanna
Nested StackNavigator inside DrawerNavigator – React Native
React Native applications often use two or more navigators at once. At first, I had a problem with the combination of stack navigator and drawer navigator, fortunately I combined them in way, that they work properly and now I can share this knowledge.
Read more
Joanna
How to open drawer navigator from header of stack navigator?
Passing drawer navigator to the stack navigator header is pretty easy, though it might seem difficult. It is seen by the number of questions asked on programming portals. Therefore, I will present here a shortened version of the code that will show how to achieve this effect.
Read more
Joanna
React Native DrawerNavigator example
If you have problem with understanding how Drawer navigation works, this short tutorial will help you implement DrawerNavigator into your application
Read more
Joanna
React Native StackNavigator example
Simple React Native StackNavigator Tutorial – navigating between screens Mobile applications often use more than one screen to properly present data. How can we create more than one screen? That’s what StackNavigator is for. To use navigation between screens, you must install a library called react-navigation in your project folder. You can do it by […]
Read more