Files
react-native/Libraries
Phillip Pan def7dd857d use new instead of alloc init
Summary:
i saw this a lot in the codebase, it's not optimal bc we're using two selectors when we only need one.

  fastmod --extensions m,mm '\[\[(.*) alloc] init]' '[${1} new]' --dir xplat/js/react-native-github/*

i manually updated the callsites that this codemod couldn't handle (e.g., where there were more than one of these instances in a single line)

Changelog: [Internal]

Reviewed By: RSNara

Differential Revision: D31776561

fbshipit-source-id: 1b16da240e8a79b54da67383d548921b82b05a9f
2021-10-20 22:18:38 -07:00
..
2021-10-20 22:18:38 -07:00
2021-09-16 22:24:10 -07:00
2021-09-16 22:24:10 -07:00
2021-09-28 14:50:41 -07:00
2021-07-01 09:04:46 -07:00
2021-10-20 22:18:38 -07:00
2021-08-26 01:06:44 -07:00
2021-04-26 22:57:55 -07:00
2021-08-24 07:21:56 -07:00
2021-08-24 07:21:56 -07:00