Add the package name you want to your package.json dependencies, and then make the value npm:<actual-package-name>. You can also add a version to the end.
package.json
{
"dependencies": {
"moti18": "npm:moti@0.18.0"
}
}This will install moti at version 0.18.0, and rename it to moti18.
Alternatively:
yarn add moti18@npm:moti@0.18.0You can now import from the renamed package:
import { MotiView } from 'moti18'