File tree 5 files changed +18
-3
lines changed
android/src/main/java/com/sourcepoint/reactnativecmp
5 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,12 @@ class RNSourcepointCmpModule internal constructor(context: ReactApplicationConte
106
106
.getJSModule(DeviceEventManagerModule .RCTDeviceEventEmitter ::class .java)
107
107
.emit(event.name, params)
108
108
109
+ @ReactMethod
110
+ fun addListener (eventName : String ) {}
111
+
112
+ @ReactMethod
113
+ fun removeListeners (count : Int ) {}
114
+
109
115
companion object {
110
116
const val NAME = " RNSourcepointCmp"
111
117
}
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ const styles = StyleSheet.create({
160
160
container : { flex : 1 } ,
161
161
title : {
162
162
textAlign : 'center' ,
163
- fontSize : 20 ,
163
+ fontSize : 22 ,
164
164
} ,
165
165
status : {
166
166
textAlign : 'center' ,
@@ -169,10 +169,11 @@ const styles = StyleSheet.create({
169
169
authIdInput : {
170
170
marginVertical : 12 ,
171
171
marginHorizontal : 'auto' ,
172
- width : '70 %' ,
172
+ width : '90 %' ,
173
173
padding : 8 ,
174
174
fontSize : 18 ,
175
175
textAlign : 'center' ,
176
176
borderWidth : 1 ,
177
+ borderColor : '#999' ,
177
178
} ,
178
179
} ) ;
Original file line number Diff line number Diff line change @@ -38,12 +38,13 @@ type UserDataViewProps = {
38
38
39
39
const styles = StyleSheet . create ( {
40
40
container : {
41
- padding : 10 ,
41
+ padding : 8 ,
42
42
} ,
43
43
header : {
44
44
fontSize : 18 ,
45
45
} ,
46
46
userDataText : {
47
47
fontSize : 10 ,
48
+ paddingBottom : 300 ,
48
49
} ,
49
50
} ) ;
Original file line number Diff line number Diff line change @@ -97,4 +97,8 @@ export class SPConsentManager implements Spec {
97
97
this . emitter . removeAllListeners
98
98
) ;
99
99
}
100
+
101
+ addListener ( _eventName : string ) : void { }
102
+ removeListeners ( _count : number ) : void { }
103
+ getConstants ?( ) : { } ;
100
104
}
Original file line number Diff line number Diff line change @@ -120,4 +120,7 @@ export interface Spec extends TurboModule {
120
120
onError ( callback : ( description : string ) => void ) : void ;
121
121
122
122
dispose ( ) : void ;
123
+
124
+ addListener ( eventName : string ) : void ;
125
+ removeListeners ( count : number ) : void ;
123
126
}
You can’t perform that action at this time.
0 commit comments