react-native-image-viewer icon indicating copy to clipboard operation
react-native-image-viewer copied to clipboard

useNativeDriver Warning

Open dl-husky73 opened this issue 4 years ago • 2 comments

I am using ver 3.0.1 New to this component, works well except I am getting the useNativeDriver warning. Seems this is a popular topic but I don't see any guidance/documentation on the exact solution.

Any help would be appreciated.

dl-husky73 avatar Sep 05 '20 13:09 dl-husky73

Thought I would add the code segment: import ImageViewer from 'react-native-image-zoom-viewer';

<Modal visible={gIsModalVisible} transparent={false} animationType="slide" onRequestClose={() => setGIsModalVisible(false)}> <ImageViewer imageUrls={gPicturesViewer} index={gPicturesIndex} backgroundColor={'#23321A'} enableSwipeDown onSwipeDown={() => setGIsModalVisible(false)} onCancel={() => setGIsModalVisible(false)} enableImageZoom={true} renderFooter={renderFooter} footerContainerStyle={styles.dotHeader4} useNativeDriver /> </Modal>

I tried setting useNativeDriver={true}, useNativeDriver={false} and useNativeDriver. None stopped the warning. useNativeDriver does not show up as a valid property for ImageViewer in Visual Studio Code so I am thinking there is an issue.

dl-husky73 avatar Sep 06 '20 13:09 dl-husky73

@dl-husky73 As you can see this package utilizes Animated lib. They made setting useNativeDriver prop required. So package owner should create corresponding prop in components. You can help by forking this project, fixing the issue and creating pull request. image

BlackCat1397 avatar Oct 26 '20 19:10 BlackCat1397