Every junior front-end developer should know what hoisting is. This issue can be easily understood, so if you have not heard of it before, you can quickly catch up:
Read More What is hoisting in javascript?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 sometimes want to div takes 100% window height, depending on the height of the user’s browser window . It is known that by setting the child’s height to 100%, it takes the entire space of its parent. That’s why if we want to child div takes all window height, we must set all its parents to have 100% height.
Read More How to set div to 100% window height?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 some useful methods that you can use depending on your needs.
Read More How to center div horizontally and vertically in cssHow 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 How to check if string contains substring in javascriptHow 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 How to copy an array in javascript?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 How to sort array of numbers in javascript?How to clear (remove all items from) array in javascript?
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 Nested StackNavigator inside DrawerNavigator – React NativeHow 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 How to open drawer navigator from header of stack navigator?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 React Native DrawerNavigator example