Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animated: useNativeDriver was not specified. This is a required option and must be explicitly set to true or false #31

Open
ReidyPlayerOne opened this issue Mar 6, 2021 · 0 comments

Comments

@ReidyPlayerOne
Copy link

ReidyPlayerOne commented Mar 6, 2021

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}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant