react-native-coordinateplugin
v0.2.1
Published
map plugin
Readme
react-native-coordinateplugin
A react native Qms plugin for
- Issue
- Appointment
- Access Item
- Offline Sync
Installation
Use npm or yarn to install the library:
npm install react-native-coordinateplugin@latest
# or
yarn add react-native-coordinateplugin@latestUsage
import { Qmsissue } from 'react-native-coordinateplugin';
// ...
export default function App() {
return (
<SafeAreaView>
<Qmsissue />
</SafeAreaView>
);
}Add native module dependencies
File: android/app/build.gradle
dependencies {
// The version of React Native is handled by the Gradle Plugin
implementation("com.facebook.react:react-android")
// Enables modern Java features on older Android devices
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'
}
# Make sure the following is also present in the same Gradle file:
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
coreLibraryDesugaringEnabled true
}
}
Apply custom theme
In your android/app/src/main/AndroidManifest.xml, ensure that your tag includes the custom QMS theme:
<application
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:theme="@style/Theme.QMS"> <!-- 👈 Add this line -->
Update AndroidManifest.xml
File: android/app/src/main/AndroidManifest.xml
Find this line:
android:allowBackup="false"
change it to:
android:allowBackup="true"
Clean & Rebuild
cd android
./gradlew clean
cd ..
npx react-native run-android
# or
yarn android
Contributing
License
MIT
Made with create-react-native-library
