react-native-skeleton-placeholder TypeError: undefined is not an object (evaluating 'child.type.displayName') code example

Example: react-native-skeleton-placeholder TypeError: undefined is not an object (evaluating 'child.type.displayName')

if you are using this package react-native-skeleton-placeholder
then use it as  mention on Doc
============================
 you can not use it like this 
 

    
      {name}
     
  
  
 ============================
to use this you have to create childs with the style attribute like Blow:
 #######################################################
 
      
  

=====================OR ================
 
       
 
 
 in simple this will not work with heiht i you can say
 
 #######################################################

Tags:

Misc Example