Skip to content

Commit

Permalink
fix: support RN 0.73 (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
vonovak authored Dec 14, 2023
1 parent be9ede5 commit c77b855
Show file tree
Hide file tree
Showing 9 changed files with 1,789 additions and 853 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,16 @@ Control the native platform theme from React Native.

Additionally, provides functionality to control the appearance (background and border color, light / dark buttons) of the Android navbar.

The package is tested with RN >= 0.66.1 (last tested with RN 72, Expo 49). See [RN version support](docs/install.md).
The package is tested with RN >= 0.66.1 (last tested with RN 73, Expo 49). See [RN version support](docs/install.md).

### Example

Notice the color of scroll bar and keyboard in the screenshots below.

| light mode | dark mode |
|---------------------------|-------------------------|
| ------------------------- | ----------------------- |
| ![light](./img/light.png) | ![dark](./img/dark.png) |



## Motivation

The use case for the package is explained in a [youtube video](https://youtu.be/NNYQj_T0Sf8).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import com.facebook.react.module.model.ReactModuleInfoProvider

class ThemeControlPackage : TurboReactPackage() {

override fun getModule(name: String?, ctx: ReactApplicationContext?): NativeModule? {
override fun getModule(name: String, ctx: ReactApplicationContext): NativeModule? {
return if (ThemeControlModule.NAME == name) {
ThemeControlModule(ctx)
} else {
Expand Down
3 changes: 2 additions & 1 deletion example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit c77b855

Please sign in to comment.