I have followed documentation
yarn add --dev rnpm-plugin-dom react-native dom
error error Unrecognized command "dom".
you are writing the command in the wrong way. here it is:
yarn add --dev rnpm-plugin-dom react-native-dom