Repository: gpbl/react-day-picker (ts)

Issue:
DayPickerInput numberOfMonths prop is not working
Example: https://codesandbox.io/s/5kw50q43r4

![image](https://user-images.githubusercontent.com/5362416/31578972-92802164-b15e-11e7-98ab-af8d5fb8b548.png)

(I see that it's handled by the `DayPickerInput` component and ignored in the `dayPickerProps`, but added to both anyway just in case :) )

Pull request description:
Do not override numberOfMonths
Close #511 

Patch:
diff --git a/src/DayPickerInput.js b/src/DayPickerInput.js
index 95773dddc..374239f49 100644
--- a/src/DayPickerInput.js
+++ b/src/DayPickerInput.js
@@ -298,7 +298,6 @@ export default class DayPickerInput extends React.Component {
             month={this.state.month}
             selectedDays={selectedDay}
             onDayClick={this.handleDayClick}
-            numberOfMonths={1}
           />
         </div>
       </div>


Test patch:
diff --git a/test/daypickerinput/rendering.js b/test/daypickerinput/rendering.js
index f0271aacb..3f9a6e772 100644
--- a/test/daypickerinput/rendering.js
+++ b/test/daypickerinput/rendering.js
@@ -107,8 +107,7 @@ describe('DayPickerInput', () => {
       instance.showDayPicker();
       expect(instance.daypicker.props.fixedWeeks).toBe(false);
       expect(instance.daypicker.props.enableOutsideDays).toBe(true);
-      // number of months should be overridden by implementation
-      expect(instance.daypicker.props.numberOfMonths).toBe(1);
+      expect(instance.daypicker.props.numberOfMonths).toBe(12);
     });
     it('should open the daypicker to the month of the selected day', () => {
       const wrapper = mount(<DayPickerInput value="12/15/2017" />);