Skip to content

Commit efd10fc

Browse files
chore: layout improvements to example app
1 parent 1328f1b commit efd10fc

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

android/src/main/java/com/sourcepoint/reactnativecmp/RNSourcepointCmpModule.kt

+6
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ class RNSourcepointCmpModule internal constructor(context: ReactApplicationConte
106106
.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter::class.java)
107107
.emit(event.name, params)
108108

109+
@ReactMethod
110+
fun addListener(eventName: String) {}
111+
112+
@ReactMethod
113+
fun removeListeners(count: Int) {}
114+
109115
companion object {
110116
const val NAME = "RNSourcepointCmp"
111117
}

example/src/App.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const styles = StyleSheet.create({
160160
container: { flex: 1 },
161161
title: {
162162
textAlign: 'center',
163-
fontSize: 20,
163+
fontSize: 22,
164164
},
165165
status: {
166166
textAlign: 'center',
@@ -169,10 +169,11 @@ const styles = StyleSheet.create({
169169
authIdInput: {
170170
marginVertical: 12,
171171
marginHorizontal: 'auto',
172-
width: '70%',
172+
width: '90%',
173173
padding: 8,
174174
fontSize: 18,
175175
textAlign: 'center',
176176
borderWidth: 1,
177+
borderColor: '#999',
177178
},
178179
});

example/src/UserDataView.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ type UserDataViewProps = {
3838

3939
const styles = StyleSheet.create({
4040
container: {
41-
padding: 10,
41+
padding: 8,
4242
},
4343
header: {
4444
fontSize: 18,
4545
},
4646
userDataText: {
4747
fontSize: 10,
48+
paddingBottom: 300,
4849
},
4950
});

0 commit comments

Comments
 (0)