React Native/75/Touchables As Functional Components

/icons/calendar.svg

Last update

Aug 29, 2024

This codemod changes the touchables from being generic expressions to functional components.

Before:

import { TouchableHighlight } from 'react-native';
const ref = useRef<TouchableHighlight>();

After:

import { TouchableHighlight } from 'react-native';
const ref = useRef<View>();

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now