This functionality is now available in Nativescript version 8.8 and installing this extension will cause conflits.
Example of a nativescript-cli extension which adds native file creation capabilities.
ns extension install @jcassidyav/nativescript-native-add
Installs to ~/.local/share/.nativescript-cli/extensions
ns native add swift SomeClass
ns native add objective-c SomeOtherClass
ns native add java some.thing.SomeClass
ns native add kotlin some.thing.SomeOtherClass