This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const widthPercentageToDP = widthPercent => { | |
const screenWidth = Dimensions.get('window').width; | |
const elemWidth = parseFloat(widthPercent); | |
return PixelRatio.roundToNearestPixel(screenWidth * elemWidth / 100); | |
}; | |
const heightPercentageToDP = heightPercent => { | |
const screenHeight = Dimensions.get('window').height; | |
const elemHeight = parseFloat(heightPercent); | |
return PixelRatio.roundToNearestPixel(screenHeight * elemHeight / 100); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Specialized; | |
using System.Reflection; | |
using Xamarin.Forms; | |
namespace Clistr.Controls | |
{ | |
public class BindablePicker : Picker | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Xamarin.Forms; | |
using Xamarin.Forms.Platform.iOS; | |
[assembly: ExportRenderer (typeof(ViewCell), typeof(MyAPP.iOS.CustomAllViewCellRendereriOS))] | |
namespace MyAPP.iOS | |
{ | |
public class CustomAllViewCellRendereriOS : ViewCellRenderer | |
{ | |
public override UIKit.UITableViewCell GetCell (Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tv) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app_identifier "com.yourorganization.mytodoapp" # The bundle identifier of your app | |
apple_id "<You Apple Id>" # Your Apple email address | |
# You can uncomment any of the lines below and add your own | |
# team selection in case you're in multiple teams | |
# team_name "CAMobileApp" | |
# team_id "Q2CBPJ58CA" | |
# you can even provide different app identifiers, Apple IDs and team names per lane: | |
# https://github.com/KrauseFx/fastlane/blob/master/docs/Appfile.md |