File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 99 TextInput,
1010 TouchableHighlight,
1111 NativeModules,
12- StyleSheet
12+ StyleSheet,
13+ ScrollView
1314} = ReactNative ;
1415
1516import JPushModule from 'jpush-react-native' ;
@@ -23,6 +24,8 @@ export default class SetActivity extends Component {
2324 tag : '' ,
2425 alias : '' ,
2526 } ;
27+ this . addTag = this . addTag . bind ( this )
28+ this . setAlias = this . setAlias . bind ( this )
2629 }
2730
2831 addTag ( ) {
@@ -34,16 +37,14 @@ export default class SetActivity extends Component {
3437 setAlias ( ) {
3538 if ( this . state . alias !== undefined ) {
3639 JPushModule . setAlias ( this . state . alias , ( ) => {
37- // console.log('success set alias');
40+
3841 Alert . alert ( 'success set alias' )
3942 } , ( ) => {
4043 Alert . alert ( 'fail set alias' )
41- // console.log('fail set alias');
4244 } ) ;
4345 } ;
4446 }
4547
46- //static addTags(tags, cb) {
4748 setTags ( ) {
4849 JPushModule . setTags ( [ 'tag1' , 'tag2' ] , ( result ) => {
4950 Alert . alert ( JSON . stringify ( result ) )
@@ -88,7 +89,8 @@ export default class SetActivity extends Component {
8889
8990 render ( ) {
9091 return (
91- < View style = { styles . container } >
92+
93+ < ScrollView style = { styles . container } >
9294 < View style = { styles . title } >
9395 < Text style = { styles . titleText } >
9496 设置 Tag 和 Alias
@@ -194,7 +196,7 @@ export default class SetActivity extends Component {
194196 </ TouchableHighlight >
195197 </ View >
196198 </ View >
197- </ View >
199+ </ ScrollView >
198200 ) ;
199201 }
200202} ;
You can’t perform that action at this time.
0 commit comments