| 
				
			 | 
			
			
				@@ -1,9 +1,7 @@ 
			 | 
		
	
		
			
			| 
				1
			 | 
			
				1
			 | 
			
			
				 //@flow 
			 | 
		
	
		
			
			| 
				2
			 | 
			
				2
			 | 
			
			
				 import React, { useRef, useState, useEffect, useCallback } from 'react'; 
			 | 
		
	
		
			
			| 
				3
			 | 
			
				
			 | 
			
			
				-import { SafeAreaView, Image, View } from 'react-native'; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				3
			 | 
			
			
				+import { SafeAreaView, Image } from 'react-native'; 
			 | 
		
	
		
			
			| 
				4
			 | 
			
				4
			 | 
			
			
				 import ViewShot from 'react-native-view-shot'; 
			 | 
		
	
		
			
			| 
				5
			 | 
			
				
			 | 
			
			
				-import { Surface, Group, Shape } from '@react-native-community/art'; 
			 | 
		
	
		
			
			| 
				6
			 | 
			
				
			 | 
			
			
				-import Desc from './Desc'; 
			 | 
		
	
		
			
			| 
				7
			 | 
			
				5
			 | 
			
			
				 import Canvas from 'react-native-canvas'; 
			 | 
		
	
		
			
			| 
				8
			 | 
			
				6
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				9
			 | 
			
				7
			 | 
			
			
				 const dimension = { width: 300, height: 300 }; 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -20,7 +18,7 @@ const CanvasRendering = ({ onDrawn }) => { 
			 | 
		
	
		
			
			| 
				20
			 | 
			
				18
			 | 
			
			
				     ctx.fillRect(140, 50, 60, 60); 
			 | 
		
	
		
			
			| 
				21
			 | 
			
				19
			 | 
			
			
				     const timeout = setTimeout(onDrawn, 1000); // hack. react-native-canvas have no way to tell when it's executed 
			 | 
		
	
		
			
			| 
				22
			 | 
			
				20
			 | 
			
			
				     return () => clearTimeout(timeout); 
			 | 
		
	
		
			
			| 
				23
			 | 
			
				
			 | 
			
			
				-  }, []); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				21
			 | 
			
			
				+  }, [onDrawn]); 
			 | 
		
	
		
			
			| 
				24
			 | 
			
				22
			 | 
			
			
				   return <Canvas ref={ref} style={dimension} />; 
			 | 
		
	
		
			
			| 
				25
			 | 
			
				23
			 | 
			
			
				 }; 
			 | 
		
	
		
			
			| 
				26
			 | 
			
				24
			 | 
			
			
				  
			 |