...
|
...
|
@@ -26,7 +26,7 @@ import SectionSelector from './SectionSelector'; |
|
|
|
|
|
let dismissKeyboard = require('dismissKeyboard');
|
|
|
let YH_CommunityAssetsPicker = NativeModules.YH_CommunityAssetsPicker;
|
|
|
|
|
|
let YH_CommunityHelper = NativeModules.YH_CommunityHelper;
|
|
|
|
|
|
let {width, height} = Dimensions.get('window');
|
|
|
let navbarHeight = (Platform.OS === 'android') ? 50 : 64;
|
...
|
...
|
@@ -158,7 +158,7 @@ export default class Posting extends Component { |
|
|
}}
|
|
|
onKeyPress={(event) => {
|
|
|
if (this.titleLength >= 30) {
|
|
|
Alert.alert('抱歉','超出30字符最长限制');
|
|
|
YH_CommunityHelper.showText('超出30字符最长限制');
|
|
|
}
|
|
|
}}
|
|
|
value={this.props.titleValue}
|
...
|
...
|
@@ -187,7 +187,7 @@ export default class Posting extends Component { |
|
|
}}
|
|
|
onKeyPress={(event) => {
|
|
|
if (this.contentLength >= 2000) {
|
|
|
Alert.alert('抱歉','超出2000字符最长限制');
|
|
|
YH_CommunityHelper.showText('超出2000字符最长限制');
|
|
|
}
|
|
|
}}
|
|
|
value={this.props.contentValue}
|
...
|
...
|
|