@@ -142,7 +142,8 @@ AppRegistry.registerComponent('Form', () => Form)
142
142
#### Create your own component to keep it DRY
143
143
144
144
``` js
145
- import React , { Component , PropTypes } from ' react-native'
145
+ import React , { Component } from ' react-native'
146
+ import PropTypes from ' prop-types'
146
147
import Icon from ' react-native-vector-icons/MaterialIcons'
147
148
import { StatelessForm , InlineTextInput } from ' react-native-stateless-form'
148
149
@@ -242,7 +243,8 @@ AppRegistry.registerComponent('Form', () => Form)
242
243
#### Usage with validate-model
243
244
244
245
``` js
245
- import React , { Component , PropTypes } from ' react-native'
246
+ import React , { Component } from ' react-native'
247
+ import PropTypes from ' prop-types'
246
248
import Icon from ' react-native-vector-icons/MaterialIcons'
247
249
import { StatelessForm , InlineTextInput } from ' react-native-stateless-form'
248
250
import { validate } from ' validate-model'
@@ -368,7 +370,8 @@ AppRegistry.registerComponent('Form', () => Form)
368
370
#### Usage with Redux Form
369
371
370
372
``` js
371
- import React , { Component , PropTypes } from ' react-native'
373
+ import React , { Component } from ' react-native'
374
+ import PropTypes from ' prop-types'
372
375
import Icon from ' react-native-vector-icons/MaterialIcons'
373
376
import { StatelessForm , InlineTextInput } from ' react-native-stateless-form'
374
377
import { validateAll } from ' validate-model'
0 commit comments