React Native/75/Touchables As Functional Components

1.0.3Last update Aug 29, 2024
by@janhvibabani

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