Animated: `useNativeDriver` was not specified. This is a required option and must be explicitly set to `true` or `false`
ReidyPlayerOne opened this issue · 0 comments
ReidyPlayerOne commented
Good day,
I have implemented your react-native-draggable-view into my project, and have gotten it to work, but every time I slide the drawer up or down, I receive the above error. I am using version 0.0.6 and have went into the source code and cannot find a remedy. Here is the code I wrote to trigger the error:
import React, { useState, useEffect, Component }from "react";
import {Alert, Dimensions, Platform, StyleSheet, Text, View, Button, TouchableOpacity, TouchableHighlight, SafeAreaView, ScrollView, ActivityIndicator, StatusBar} from "react-native";
import Drawer from 'react-native-draggable-view'
import {Screen2} from './Screen2'
import {Screen3} from './Screen3'
function Screen({navigation}) {
return(
<View style = {styles.container}>
<Drawer
initialDrawerSize={0.3}
finalDrawerHeight={0.5}
//autoDrawerUp={0.5}
renderContainerView={() => (
<Screen2 navigation = {navigation}/>
)}
renderDrawerView={() => (
<Screen3 navigation = {navigation} />
)}
renderInitDrawerView={() => (
<View style = {{alignItems: 'center'}}>
<View style={{backgroundColor: '#d3d3d3', height: height*0.01, width: width*0.2, alignItems: 'center'}}>
<StatusBar hidden={false} />
</View>
</View>
)}
/>
</View>
)
}
export {Screen}