import { NativeModules } from 'react-native'; const { RoboIdentitiesModule } = NativeModules; interface RoboIdentitiesModuleInterface { generateRoboname: (initialString: String) => Promise; generateRobohash: (initialString: String) => Promise; } export default RoboIdentitiesModule as RoboIdentitiesModuleInterface;