Commit 31b3a5c
authored
feat/expo rn module (#12)
* bring over stuff that looks good from standard native modules attempt
#10
* expo config setup init
MAN THAT WAS HARD!
had to
- downgrade react-native to 0.71
- upgrade kotlin to 1.8
- downgrade gradle to 7.6
- change the location of @react-native/gradle-plugin to
react-native-gradle-plugin
- setup the expo config to use the hermes compiler (not mention in doc
:/ )
facebook/react-native#38179
expo/expo#22008
* missed a spot
* got everything running with no errors
ran into this ugly one called
java.lang.IllegalStateException: Current Activity is of incorrect class,
expected AppCompatActivity, received ui.MyReactActivity
hard to debug for real for real.
ended up looking into expo docs that said they are getting rid of the
bare instructions
and then
expo/expo#18022
then that had me be like where is that erorr even from...
which lead me to git blame
packages/expo-modules-core/android/src/main/java/expo/modules/kotlin/AppContext.kt
which lead me to
expo/expo#19573
which lead me to
s/Activity/AppCompatActivity/g
in
android/app/src/main/java/com/github/quarck/calnotify/ui/MyReactActivity.kt
* fix: forgot to switch to matching gradle version for android build plugin
* def don't need react native picker
hope we don't need expo install modules either
* kinda crazy but got a (mostly) WORKING NATIVE MODULE!
in
modules/my-module/android/src/main/java/expo/modules/mymodule/MyModule.kt
Constants, Events, and AsyncFunction work beautifully!
View seems to work but I don't really understand it
weirdly Function DOES NOT WORK AT ALL!!!
it just says is not a function and since it seemed like the easiest
thing and was what I looked at first it made me thing everything else
was broken too :/
lost A LOT of time to that
* Logcat instead of println and hello on button press
* document why chrome debugging doesn't work as expected by default
to save myself time in the future
* debugging with vscode works!!!!
unfortunately debugging syncronous native modules in it does not :/
* more docs on debugging
* react-native-devsettings because why not
* flipper setup again because why not?
* drop a android studio thing that didn't work
* fix readme
* drop a dependency we dont need that had a peer dependency that broke shit
expo-module-scripts 3.1.0 depends on @expo/config 7.5 which breaks shit
* Revert "flipper setup again because why not?"
turns out it breaks build. like flipper but not worth build break
This reverts commit 8612ff3.
* do still want to set entryFile though1 parent 68cf15d commit 31b3a5c
File tree
34 files changed
+4847
-784
lines changed- .vscode
- android
- .idea
- app
- src/main/java/com/github/quarck/calnotify
- ui
- gradle/wrapper
- modules/my-module
- android
- src/main
- java/expo/modules/mymodule
- ios
- src
34 files changed
+4847
-784
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
127 | 130 | | |
128 | 131 | | |
129 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
22 | 30 | | |
23 | 31 | | |
24 | 32 | | |
25 | | - | |
26 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
27 | 38 | | |
28 | | - | |
29 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
30 | 44 | | |
31 | | - | |
32 | | - | |
33 | 45 | | |
34 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| 53 | + | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
74 | 82 | | |
0 commit comments