feat: add setVolume function to component's ref (#3794)
* feat: add setVolume function to component's ref * Update methods.mdx
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							d4c9be2ba0
						
					
				
				
					commit
					3cd7ab60b2
				
			@@ -92,6 +92,14 @@ By default iOS seeks within 100 milliseconds of the target position. If you need
 | 
			
		||||
 | 
			
		||||
tolerance is the max distance in milliseconds from the seconds position that's allowed. Using a more exact tolerance can cause seeks to take longer. If you want to seek exactly, set tolerance to 0.
 | 
			
		||||
 | 
			
		||||
### `setVolume`
 | 
			
		||||
 | 
			
		||||
<PlatformsList types={['Android', 'iOS']} />
 | 
			
		||||
 | 
			
		||||
`setVolume(value): Promise<void>`
 | 
			
		||||
 | 
			
		||||
This function will change the volume exactly like [volume](../props#volume) property. default value and range are the same then.
 | 
			
		||||
 | 
			
		||||
### Example Usage
 | 
			
		||||
 | 
			
		||||
```tsx
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user