Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
react-native-location-picker-controller
Advanced tools
Readme
React Native Wrapper for LocationPicker, a ready for use and fully customizable location picker.
LocationPicker - original library
Make sure your project relies on React Native >= 0.25
Make sure your project uses react-native-navigation and that you've followed the Installation instructions there
In your RN project root run:npm install react-native-location-picker-controller --save
In Xcode, in Project Navigator (left pane), right-click on the Libraries
> Add files to [project name]
Add ./node_modules/react-native-location-picker-controller/ios/LocationPicker.xcodeproj
(screenshots)
In Xcode, in Project Navigator (left pane), click on your project (top) and select the Build Phases
tab (right pane)
In the Link Binary With Libraries
section add LocationPicker.framework
(screenshots)
Open your Xcode project and drag RNLocationPicker.swift
, RNLocationPickerManager.h
, RNLocationPickerManager.m
from the folder node_modules/react-native-location-picker/ios
into your project, in the dialog box let Xcode create Objective-C bridging header.(screenshot 1, screenshot 2)
Editing <your project name>-Bridging-Header.h
to import RCCExternalViewControllerProtocol.h
and RCCViewController.h
for Swift to use:
//
// Use this file to import your target's public headers that you would like to expose to Swift.
//
#import "RCCExternalViewControllerProtocol.h"
#import "RCCViewController.h"
In RNLocationPickerManager.m
, replace #import "tacitus-Swift.h"
to #import "<your project name>-Swift.h"
To display your screen, from within one of your other app screens, push the editor:
this.props.navigator.push({
screen: 'example.LocationPickerScreen',
title: 'Pick a Location',
passProps: {
externalNativeScreenClass: 'RNLocationPicker',
}
});
Code in this git repo is licensed MIT.
FAQs
React Native Wrapper for LocationPicker, a ready for use and fully customizable location picker.
We found that react-native-location-picker-controller demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).