Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replaced View.propTypes.style with ViewPropTypes.style #132

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/fields/Separator.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

import React from 'react';
let { View, StyleSheet, Text} = require('react-native');
let { View, ViewPropTypes, StyleSheet, Text} = require('react-native');

export class Separator extends React.Component{
render(){
Expand All @@ -18,7 +18,7 @@ export class Separator extends React.Component{

Separator.propTypes = {
labelStyle: Text.propTypes.style,
containerStyle: View.propTypes.style
containerStyle: ViewPropTypes.style
}


Expand Down
4 changes: 2 additions & 2 deletions src/lib/InputComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
import ReactNative, { Platform } from 'react-native';
import {Field} from './Field.js';

const {View, StyleSheet, TextInput, Text} = ReactNative;
const {View, ViewPropTypes, StyleSheet, TextInput, Text} = ReactNative;

function validateEmail(email) {
var re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
Expand Down Expand Up @@ -208,5 +208,5 @@ export class InputComponent extends React.Component{
InputComponent.propTypes = {
labelStyle: Text.propTypes.style,
inputStyle: TextInput.propTypes.style,
containerStyle: View.propTypes.style
containerStyle: ViewPropTypes.style
}
4 changes: 2 additions & 2 deletions src/lib/LinkComponent.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

import React from 'react';
let { View, StyleSheet, Text} = require('react-native');
let { View, ViewPropTypes, StyleSheet, Text} = require('react-native');
import {Field} from './Field';


Expand Down Expand Up @@ -48,5 +48,5 @@ export class LinkComponent extends React.Component{

LinkComponent.propTypes = {
labelStyle: Text.propTypes.style,
containerStyle: View.propTypes.style
containerStyle: ViewPropTypes.style
}
4 changes: 2 additions & 2 deletions src/lib/SwitchComponent.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

import React from 'react';
let { View, StyleSheet, Text, Switch} = require('react-native');
let { View, ViewPropTypes, StyleSheet, Text, Switch} = require('react-native');

import {Field} from './Field';

Expand Down Expand Up @@ -53,7 +53,7 @@ export class SwitchComponent extends React.Component{

SwitchComponent.propTypes = {
labelStyle: Text.propTypes.style,
containerStyle: View.propTypes.style,
containerStyle: ViewPropTypes.style,
switchStyle: Switch.propTypes.style
}

Expand Down