I am want to use a certain component in react native but all the third party components were written as class based components. Is it an anti-pattern to use a class based react component in a functional component? For example:
import * as React from 'react';
import { Text, View, Image, StyleSheet } from 'react-native';
import ClassComponent from 'SomeOldClassBasedCompont';
export default function TabOneScreen() {
return (
<View>
<ClassComponent />
</View>
);
}