I am trying to implement the same appBar bottom variant as in https://www.react-native-material.com/docs/components/app-bar#bottom-app-bar and I am getting the following error:
Attempting to run JS driven animation on animated node that has been moved to "native" earlier by starting an animation with useNativeDriver: true
I cannot find any solution to this problem online. Any help would be appreciated.
Here is my App component
import { AppBar, IconButton, FAB } from "@react-native-material/core";
import Icon from "@expo/vector-icons/MaterialCommunityIcons";
export default function App() {
return (
<>
<AppBar
variant="bottom"
color="white"
leading={(props) => (
<IconButton
icon={(props) => <Icon name="menu" {...props} />}
{...props}
/>
)}
trailing={(props) => (
<IconButton
icon={(props) => <Icon name="magnify" {...props} />}
{...props}
/>
)}
style={{ position: "absolute", start: 0, end: 0, bottom: 0 }}
>
<FAB
color="black"
icon={(props) => <Icon name="plus" {...props} />}
style={{ position: "absolute", top: -28, alignSelf: "center" }}
/>
</AppBar>
</>
);
}
I am trying to implement the same appBar bottom variant as in https://www.react-native-material.com/docs/components/app-bar#bottom-app-bar and I am getting the following error:
Attempting to run JS driven animation on animated node that has been moved to "native" earlier by starting an animation with
useNativeDriver: trueI cannot find any solution to this problem online. Any help would be appreciated.
Here is my App component
import { AppBar, IconButton, FAB } from "@react-native-material/core";
import Icon from "@expo/vector-icons/MaterialCommunityIcons";