import ReactInputMask from 'react-input-mask';
import * as React from 'react';

let ref: HTMLInputElement | null = null;

<div>
    <ReactInputMask mask="+4\9 99 999 99" maskChar={null} />
    <ReactInputMask mask="+7 (999) 999-99-99" />
    <ReactInputMask mask="99-99-9999" defaultValue= "13-00-2017" />
    <ReactInputMask mask="99/99/9999" placeholder= "Enter birthdate" />
    <ReactInputMask mask="+7 (999) 999-99-99" />
    <ReactInputMask mask="+7 (999) 999-99-99" inputRef={(node) => ref = node} />
</div>;

import ReactInputMask from 'react-input-mask';
import * as React from 'react';

<div>
    <ReactInputMask mask="+4\9 99 999 99" maskChar={null} />
    <ReactInputMask mask="+7 (999) 999-99-99" />
    <ReactInputMask mask="99-99-9999" defaultValue= "13-00-2017" />
    <ReactInputMask mask="99/99/9999" placeholder= "Enter birthdate" />
    <ReactInputMask mask="+7 (999) 999-99-99" />
</div>;

--- 
+++ 
@@ -1,5 +1,7 @@
 import ReactInputMask from 'react-input-mask';
 import * as React from 'react';
+
+let ref: HTMLInputElement | null = null;
 
 <div>
     <ReactInputMask mask="+4\9 99 999 99" maskChar={null} />
@@ -7,4 +9,5 @@
     <ReactInputMask mask="99-99-9999" defaultValue= "13-00-2017" />
     <ReactInputMask mask="99/99/9999" placeholder= "Enter birthdate" />
     <ReactInputMask mask="+7 (999) 999-99-99" />
+    <ReactInputMask mask="+7 (999) 999-99-99" inputRef={(node) => ref = node} />
 </div>;
Add test for inputRef prop
