Check out example codes for "how to get rid how white border on html page". It will help you in understanding the concepts better.

Code Example 1

<html>  
<head>  
    <style type="text/css">  
        body { margin:0; }  
    </style>  
</head>  
<body>  
    Hello World!!!  
</body>  
</html> 

Learn ReactJs, React Native from akashmittal.com