
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Map implementation for new architecture
npm install mapbric
Add your google map api key For simple:
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="your api key here" />
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
For security: Add this line to your android/build.gralde:
buildscript{
....
dependencies{
....
classpath "com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin:2.0.1"
}
}
and this line in app/build.gralde:
apply plugin: "com.google.android.libraries.mapsplatform.secrets-gradle-plugin"
add your key in local.properties
MAPS_API_KEY= your api key
# eg MAPS_API_KEY=AIzaSyDKIzSjooso9Zcn5LNeewUFc0q9eGK6GhZ
Then define api key in AndroidManifest.xml:
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="${MAPS_API_KEY}" />
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
import { MarkerView, MapbricComponent } from 'mapbric';
// ...
<MapbricComponent
ref ={mapbricComponentRef}
showsUserLocation
focusRegion={region}
style={styles.box}
>
{
markers.map((marker) => {
return <MarkerView
title= {marker.title}
coordinate={{
longitude: marker.longitude,
latitude:marker.latitude,
}}
description={marker.description}
style={{ height: 100, width: 50, backgroundColor: 'red' }}
>
<Text style={{ top: 30}}>Demo</Text>
</MarkerView>
})
}
</MapbricComponent>
<TouchableOpacity style={{width: 200, height: 80,backgroundColor: 'red',}}
onPress={() => {
mapbricComponentRef?.current?.moveToCurrentLocation()
}}
>
<Text>Move To Current Location</Text>
</TouchableOpacity>
/>
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library
FAQs
test
We found that mapbric demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.