diff --git a/README.md b/README.md index 67718c2..235aa8f 100644 --- a/README.md +++ b/README.md @@ -57,15 +57,27 @@ Add the library plugin in your `app.json` config file and [create a new build](h } ``` +_📌 The available plugins options are:_ + +```ts +type Options = { + android?: { + // use an edge-to-edge version of `Theme.{MaterialComponents,Material3}.DayNight.NoActionBar` + parentTheme?: "Material2" | "Material3"; // optional, default is `undefined` (`Theme.EdgeToEdge`) + }; +}; +``` + > [!NOTE] > This library is not yet supported in the [Expo Go](https://expo.dev/go) sandbox app. ### Bare React Native -Edit your `android/app/src/main/res/values/styles.xml` file to inherit from the provided theme: +Edit your `android/app/src/main/res/values/styles.xml` file to inherit from one of the provided themes: ```diff + - - diff --git a/android/src/main/res/values-night/bools.xml b/android/src/main/res/values-night/bools.xml new file mode 100644 index 0000000..5315da4 --- /dev/null +++ b/android/src/main/res/values-night/bools.xml @@ -0,0 +1,4 @@ + + + false + diff --git a/android/src/main/res/values-night/styles.xml b/android/src/main/res/values-night/styles.xml deleted file mode 100644 index 7308872..0000000 --- a/android/src/main/res/values-night/styles.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - diff --git a/android/src/main/res/values-v27/bools.xml b/android/src/main/res/values-v27/bools.xml new file mode 100644 index 0000000..966590f --- /dev/null +++ b/android/src/main/res/values-v27/bools.xml @@ -0,0 +1,4 @@ + + + true + diff --git a/android/src/main/res/values-v27/styles.xml b/android/src/main/res/values-v27/styles.xml index 61f85c2..ae5862d 100644 --- a/android/src/main/res/values-v27/styles.xml +++ b/android/src/main/res/values-v27/styles.xml @@ -1,11 +1,17 @@ - - + + diff --git a/android/src/main/res/values-v29/styles.xml b/android/src/main/res/values-v29/styles.xml index 6658b45..856bf21 100644 --- a/android/src/main/res/values-v29/styles.xml +++ b/android/src/main/res/values-v29/styles.xml @@ -1,6 +1,21 @@ + + + + + + + + - - + +