marlti7

marlti7

桃花影落飞神剑 碧海潮生按玉箫

Member Since 6 years ago

上海育宁文化发展有限公司, 上海徐汇

Experience Points
3
follower
Lessons Completed
0
follow
Lessons Completed
220
stars
Best Reply Awards
43
repos

14 contributions in the last year

Pinned
⚡ 微信小程序自定义tabbar,包含可左右滚动。
⚡ react native 前端架构
⚡ 个人简历网站
⚡ android settings in React Native
⚡ 一个微信小程序通过 DDP 协议和 Meteor 后端交换数据的简单例子
Activity
Jan
19
6 days ago
Jan
10
2 weeks ago
Activity icon
fork

marlti7 forked soueuls/react-native-slider-picker

⚡ Unofficial fork of react-native-slider-picker by Graftonstudio
marlti7 GNU General Public License v3.0 Updated
fork time in 2 weeks ago
Dec
27
4 weeks ago
Activity icon
issue

marlti7 issue comment microsoft/react-native-code-push

marlti7
marlti7

Build failed with React Native 0.62

> Task :react-native-code-push:compileDebugJavaWithJavac FAILED
/Users/lusheng.lls/workspace/brm-apps/node_modules/react-native-code-push/android/app/src/main/java/com/microsoft/codepush/react/CodePush.java:157: error: cannot find symbol
                isLiveReloadEnabled = devInternalSettings.isReloadOnJSChangeEnabled();
                                                         ^
  symbol:   method isReloadOnJSChangeEnabled()
  location: variable devInternalSettings of type DevInternalSettings
Note: /Users/lusheng.lls/workspace/brm-apps/node_modules/react-native-code-push/android/app/src/main/java/com/microsoft/codepush/react/CodePushNativeModule.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

Root cause: https://github.com/facebook/react-native/commit/478df155e70a4ce30219adcac6f0801c4e4d10ec#diff-2fc30127a6c6568653505923bbd3bdbb

marlti7
marlti7

@astulip thanks for this, the above fixed the problem for me.

All in all I had to do the following to get this running on RN62:

settings.gradle

rootProject.name = 'boilerplate'

apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app', ':react-native-code-push'
project(':react-native-code-push').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-code-push/android/app')

node_modules / react-native-code-push / android / app / src / main / java / com / microsoft / codepush / react / CodePush.java

        if (instanceManager != null) {
            DevSupportManager devSupportManager = instanceManager.getDevSupportManager();
            if (devSupportManager != null) {
                DevInternalSettings devInternalSettings = (DevInternalSettings)devSupportManager.getDevSettings();
                isLiveReloadEnabled = devInternalSettings.isHotModuleReplacementEnabled();
            }
        }

it.s work

Dec
22
1 month ago
started
started time in 1 month ago
started
started time in 1 month ago
started
started time in 1 month ago
started
started time in 1 month ago
Dec
8
1 month ago
Activity icon
issue

marlti7 issue comment henninghall/react-native-date-picker

marlti7
marlti7

iOS is24hourSource is ignored if locale is set

I have my device set to use 24 hour time. The time picker still shows AM/PM in the picker.

Eg:

<DatePicker
    date={new Date(this.props.time)}
    is24hourSource={"device"}
->  locale={"en-US"}
    mode={"time"}
    onDateChange={this.props.onTimeChange}
    textColor={this.props.textColor}
  />

I would expect it to still render 24 hour time with is24hourSource={"device"} being set.

marlti7
marlti7

but i want it work on ios

i found locale set with _GB is work

Activity icon
issue

marlti7 issue comment henninghall/react-native-date-picker

marlti7
marlti7

iOS is24hourSource is ignored if locale is set

I have my device set to use 24 hour time. The time picker still shows AM/PM in the picker.

Eg:

<DatePicker
    date={new Date(this.props.time)}
    is24hourSource={"device"}
->  locale={"en-US"}
    mode={"time"}
    onDateChange={this.props.onTimeChange}
    textColor={this.props.textColor}
  />

I would expect it to still render 24 hour time with is24hourSource={"device"} being set.

marlti7
marlti7

but i want it work on ios

Nov
9
2 months ago
Activity icon
issue

marlti7 issue comment akveo/react-native-ui-kitten

marlti7
marlti7

Font Weight of '700' or 'bold' not working in Android for Custom fonts

🐛 Bug Report

When using custom fonts (fontFamily with typefaces), with a fontWeight of 700 or 'bold', Android defaults to system font instead of the custom font added in the app. ( Example: A fontWeight of 700 should use SourceSansPro-Bold)

When using other numerical fontWeight values, the fonts in iOS changes typeface accordingly, but android stays on the typeface mentioned in the fontFamily.

Font used: Source Sans Pro - https://fonts.google.com/specimen/Source+Sans+Pro

Link to my custom mapping.json

https://gist.github.com/vkumaez/b39d63073ebc2925d6ab39d02f53b781.js

Steps to reproduce the behaviour:

  1. Add Source Sans Pro font to the app and link it properly.
  2. Create a custom mapping.json with font family 'SourceSansPro-Bold' and font weight 700 or bold for any of the Text category (h1, h2,...)
  3. Observe that the font is correct in iOS, but in Android it falls back to some system font. (In the below image, note the letter 'g'. In Android, Heading1, Heading2, Heading3 has a different font instead of SourceSansPro-Bold, while in iOS all the text have the correct font).
Screenshot 2021-08-09 at 1 28 14 PM

The same issue happens with OpenSans font, at font weight 700. So it's definitely not an issue with the font.

Screenshot 2021-08-09 at 8 50 48 PM

Expected behaviour

Based on the fontWeight, the typeface of the custom font should be used automatically. ( Example: A fontWeight of 700 should use SourceSansPro-Bold)

UI Kitten and Eva version

Package Version
@eva-design/eva 2.1.0
@ui-kitten/components 5.1.0

Environment information

System: OS: macOS 10.15.7 CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @2.60GHz Binaries: Node: 14.17.4 - /usr/local/bin/node npm: 6.14.14 - /usr/local/bin/npm Watchman: 2021.06.07.00 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 Android SDK: API Levels: 29, 31 Build Tools: 29.0.2, 30.0.2, 31.0.0 System Images: android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7583922 Xcode: 12.4/12D4e - /usr/bin/xcodebuild npmPackages: react: 17.0.1 => 17.0.1 react-native: 0.64.0 => 0.64.0

Nov
3
2 months ago
started
started time in 2 months ago
Oct
25
3 months ago
started
started time in 3 months ago