'Swipeable React Native

my Swipeable still isn’t working even after I wrapped it with GestureHandlerRootFile. It is still stating the “Swipeable: Unknown Word”.

Here is the code, thank you

import React from 'react' import { View, StyleSheet, Image, TouchableHighlight, TouchableOpacity } from 'react-native' import AppText from './AppText' import colors from '../config/colors'

import { GestureHandlerRootView } from "react-native-gesture-handler"; import Swipeable from 'react-native-gesture-handler/Swipeable';

function ListItem({ title, subTitle, image, onPress, renderRightActions }) { return( {title} {subTitle}

)

}

const styles = StyleSheet.create({ image: { width: 70, height: 70, borderRadius: 35, marginRight: 10, }, container: { flexDirection: 'row', padding: 15, }, subTitle: { color: colors.medium, }, title: { fontWeight: '500', }, })

export default ListItem



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source