forked from GeekyAnts/NativeBase
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathText.js
More file actions
26 lines (21 loc) · 643 Bytes
/
Text.js
File metadata and controls
26 lines (21 loc) · 643 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import React, { Component } from 'react';
import { Text as RNText } from 'react-native';
import { connectStyle } from 'native-base-shoutem-theme';
import { connectAnimation } from '@shoutem/animation';
import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames';
class Text extends Component {
render() {
return (
<RNText ref={c => this._root = c} {...this.props} />
);
}
}
Text.propTypes = {
...RNText.propTypes,
style: React.PropTypes.object,
};
const AnimatedText = connectAnimation(Text);
const StyledText = connectStyle('NativeBase.Text', {}, mapPropsToStyleNames)(Text);
export {
StyledText as Text,
};