profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/trajano/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Archimedes Trajano trajano Trajano https://trajano.net/ My direct e-mail is arch AT trajano DOT net

otaviojava/Easy-Cassandra 73

easy programming in Cassandra

trajano/alpine-libfaketime 13

A simple image containing libfaketime built with Alpine build tools for use with multistage builds.

trajano/app-ms 8

Microservices based application stack using Vert.X, Resteasy and Spring-boot

trajano/batik-maven-plugin 4

Provides functionality to execute the Batik Rasterizer and Font converter.

trajano/caliper 3

Fork of https://code.google.com/p/caliper/

trajano/choco-packages 3

Chocolatey Packages

trajano/berkeleydb-httpcachestorage 2

A BerkeleyDB backed HttpCacheStorage to be used with CachingHttpClient of HttpClient project

trajano/android 1

random stuff for android

trajano/angular-bootstrap-validator 1

Performs validations on a bootstrap marked up form with AngularJS

trajano/app 1

Sample Java EE 7 application that tries to put in as many technologies as possible.

push eventtrajano/google-fonts

Archimedes Trajano

commit sha 60a8aca79e1c5ebd74a00606d5f4b58542589b20

Missed export

view details

push time in 8 hours

PR opened expo/google-fonts

Generate using node12 compatible output

This will allow the modules to work with Jest.

+3 -3

0 comment

1 changed file

pr created time in 8 hours

push eventtrajano/google-fonts

Archimedes Trajano

commit sha 2664b7df680ae851bf01c8ddc54f80d559cc93bc

Generate using node12 compatible output This will allow the modules to work with Jest.

view details

push time in 8 hours

fork trajano/google-fonts

Use any of the 1000+ fonts (and their variants) from fonts.google.com in your Expo app.

fork in 8 hours

issue openedexpo/google-fonts

use Jest compatible index.js

When using jest with the fonts, it complains about unexpected token "export" I tried to put it in transformIgnorePatterns but it does not appear to work with it and the jest-expo preset.

created time in 8 hours

issue openedGeekyAnts/NativeBase

Hidden and SkeletonCircle uses forwardRef with only one parameter

When importing native-base in jest the following warnings appear.

console.error
  Warning: forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter?

  at printWarning (node_modules/react/cjs/react.development.js:315:30)
  at error (node_modules/react/cjs/react.development.js:287:5)
  at forwardRef (node_modules/react/cjs/react.development.js:1424:9)
  at Object.<anonymous> (node_modules/native-base/lib/commonjs/components/primitives/Hidden/index.tsx:79:21)

console.error
  Warning: forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter?

  at printWarning (node_modules/react/cjs/react.development.js:315:30)
  at error (node_modules/react/cjs/react.development.js:287:5)
  at forwardRef (node_modules/react/cjs/react.development.js:1424:9)
  at Object.<anonymous> (node_modules/native-base/lib/commonjs/components/composites/Skeleton/SkeletonCircle.tsx:12:21)

created time in 9 hours

issue commentexpo/expo

jest with @expo-google-fonts should not be transformed

In my case with abhayalibre

   .../node_modules/@expo-google-fonts/abhaya-libre/index.js:5
    export { useFonts } from './useFonts';
    ^^^^^^

    SyntaxError: Unexpected token 'export'
trajano

comment created time in 9 hours

issue openedexpo/expo

jest with @expo-google-fonts should not be transformed

Summary

I was trying to test a scenario for my library which uses expo-google-fonts, I don't really intend to test the font, but one of the modules used it. I can skip the module if I wanted to, but ideally the fonts should not be transformed as part of the jest-expo preset.

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

Android, iOS, Web

SDK Version (managed workflow only)

42

Environment

Expo CLI 4.12.0 environment info: System: OS: macOS 11.6 Shell: 5.8 - /bin/zsh Binaries: Node: 12.18.0 - ~/.nvm/versions/node/v12.18.0/bin/node npm: 6.14.11 - ~/.nvm/versions/node/v12.18.0/bin/npm Watchman: 2021.08.30.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0 IDEs: Android Studio: 4.1 AI-201.8743.12.41.6858069 Xcode: 13.0/13A233 - /usr/bin/xcodebuild npmPackages: expo: ^42.0.4 => 42.0.4 react: ^16.13.1 => 16.13.1 react-native: ^0.63.2 => 0.63.2 npmGlobalPackages: expo-cli: 4.12.0 Expo Workflow: managed

Reproducible demo or steps to reproduce from a blank project

import * as Lexend from "@expo-google-fonts/lexend"; describe("validate jest", () => { it("should load library", () => expect(Lexend).toBeTruthy()); });

created time in 9 hours

issue openedGeekyAnts/NativeBase

Provide FactoryProps<T> that allows wrapping of an existing component props with the native base props

Is your feature request related to a problem? Please describe.

I want to wrap my existing components using Factory so I can utilize Native Base design system, but the types are not directly exposed.

Describe the solution you'd like

type XXXProps<T> which takes in the props of an existing component and adds native base props and overrides if needed. For example color may be limited to strings and size may be a string

Describe alternatives you've considered

For now I use a generic catch all but it is not specific so I get text styles when I don't really need it.

type FactoryProps<T> = T & ReturnType<typeof Factory>['defaultProps']

created time in 21 hours

issue openedGeekyAnts/NativeBase

themeTools getColor should accept OpaqueColorValue

Describe the bug

expo-vectorIcons uses string | OpaqueColorValue or simply ColorValue which uses OpaqueColorValue but getColor requires a string.

created time in 21 hours

issue commentsignalapp/Signal-Desktop

[Wish] Option to start / boot with system startup

Is there a fork with the PR that @Xaeroxe made?

MartinX3

comment created time in 2 days

issue commentGeekyAnts/NativeBase

linear gradient

I wonder if there is a way of doing it with <Button> as well

steida

comment created time in 5 days

issue commentGeekyAnts/NativeBase

Responsive support not in typings

they already have useBreakpointValue which sort of does the same thing. Except it's poorly typed. It should be typed as

type BreakpointsObject<T> = {
  base: T,
  sm: T,
  md: T,
  lg: T,
  xl: T
};

type Breakpoints<T> = T[] | BreakpointsObject<T>;
function useBreakpointValue(bp : Breakpoints<T>): T
trajano

comment created time in 7 days

issue commentexpo/google-fonts

expo google fonts types say `__metdata__` but the actual object uses `__metadata__`

I guess this would be a job for Github actions so you don't have to do it manually.

trajano

comment created time in 7 days

issue commentreact-native-webview/react-native-webview

Using assets fonts in webview css on ios

@trajano ProjectFolder/assets/fonts/ ProjectFolder/react-native.config.js

react-native.config.js

module.exports = {
  project: {
    ios: {},
    android: {}, // grouped into "project"
  },
  assets: ["./assets/fonts/"], // stays the same
};

thanks. so you're not using expo-google-fonts. I actually got the iOS one to work, just have to find out the equivalent for Android

punksta

comment created time in 11 days

issue closedunshiftio/url-parse

Extracting the path name does not decode escaped characters

I was expecting %25 in a URL will resolve to % when extracting the file name.

closed time in 11 days

trajano

issue commentunshiftio/url-parse

Extracting the path name does not decode escaped characters

Confirmed thanks.

trajano

comment created time in 11 days

issue openedexpo/google-fonts

expo google fonts types say `__metdata__` but the actual object uses `__metadata__`

Summary

If you look at the typings for Google fonts loaded using Expo, it has __metdata__ but it should be __metadata__. It's just a one character typo, but needs the fonts to be all regenerated.

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

Android, iOS, Web

SDK Version (managed workflow only)

42

Environment

Expo CLI 4.11.0 environment info: System: OS: macOS 11.5.2 Shell: 5.8 - /bin/zsh Binaries: Node: 12.18.0 - ~/.nvm/versions/node/v12.18.0/bin/node Yarn: 1.22.11 - ~/.nvm/versions/node/v12.18.0/bin/yarn npm: 6.14.11 - ~/.nvm/versions/node/v12.18.0/bin/npm Watchman: 2021.08.30.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4 IDEs: Android Studio: 4.1 AI-201.8743.12.41.6858069 Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild npmPackages: expo: ~42.0.1 => 42.0.3 react: 16.13.1 => 16.13.1 react-dom: 16.13.1 => 16.13.1 react-native: https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz => 0.63.2 react-native-web: ~0.13.12 => 0.13.18 npmGlobalPackages: expo-cli: 4.11.0 Expo Workflow: managed

Reproducible demo or steps to reproduce from a blank project

npm install @expo-google-fonts/libre-baskerville

Then look at the typings file.

created time in 11 days

issue openedunshiftio/url-parse

Extracting the path name does not decode escaped characters

I was expecting %25 in a URL will resolve to @ when extracting the file name.

created time in 11 days

pull request commentramda/ramda

doc: memoizeWith type requires a string

I don't mind, I just didn't want to touch the API/code directly. Though personally I would rather Ramda be automatically typed no @types/ramda ideally.

trajano

comment created time in 11 days

issue commentreact-native-webview/react-native-webview

Using assets fonts in webview css on ios

@darknessproduction where do you store your fonts?

punksta

comment created time in 12 days

issue openedexpo/expo

expo google fonts types say `__metdata__` but the actual object uses `__metadata__`

Summary

If you look at the typings for Google fonts loaded using Expo, it has __metdata__ but it should be __metadata__. It's just a one character typo, but needs the fonts to be all regenerated.

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

Android, iOS, Web

SDK Version (managed workflow only)

42

Environment

Expo CLI 4.11.0 environment info: System: OS: macOS 11.5.2 Shell: 5.8 - /bin/zsh Binaries: Node: 12.18.0 - ~/.nvm/versions/node/v12.18.0/bin/node Yarn: 1.22.11 - ~/.nvm/versions/node/v12.18.0/bin/yarn npm: 6.14.11 - ~/.nvm/versions/node/v12.18.0/bin/npm Watchman: 2021.08.30.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4 IDEs: Android Studio: 4.1 AI-201.8743.12.41.6858069 Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild npmPackages: expo: ~42.0.1 => 42.0.3 react: 16.13.1 => 16.13.1 react-dom: 16.13.1 => 16.13.1 react-native: https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz => 0.63.2 react-native-web: ~0.13.12 => 0.13.18 npmGlobalPackages: expo-cli: 4.11.0 Expo Workflow: managed

Reproducible demo or steps to reproduce from a blank project

npm install @expo-google-fonts/libre-baskerville

Then look at the typings file.

created time in 12 days

PR opened ramda/ramda

doc: memoizeWith type requires a string

The typing for memoizeWith requires the identity function to return a string. This updates the example with the correct method

+1 -1

0 comment

1 changed file

pr created time in 12 days

push eventtrajano/ramda

Archimedes Trajano

commit sha 0247a768291ec5e9febab74cda80b92a1e881d0f

doc: memoizeWith type requires a string The typing for memoizeWith requires the identity function to return a string.

view details

push time in 12 days

fork trajano/ramda

:ram: Practical functional Javascript

https://ramdajs.com

fork in 12 days

PR opened facebook/react-native-website

doc: add a note on the implementation detail

Added a note in case people would think that the Button would behave 100% like a native control, but find out it is simply a stylized Touchable https://github.com/facebook/react-native/blob/ef6ad1f2d65639a1d41e05a895ad21ce97192749/Libraries/Components/Button.js#L342-L351

I didn't add the link to the specific source lines as I thought that would be TIM.

<!-- Thank you for the PR! Contributors like you keep React Native awesome!

Please see the Contribution Guide for guidelines:

https://github.com/facebook/react-native-website/blob/master/CONTRIBUTING.md

If your PR references an existing issue, please add the issue number below:

#<Issue> -->

+4 -0

0 comment

1 changed file

pr created time in 14 days

push eventtrajano/react-native-website

Archimedes Trajano

commit sha 18c0ae0a9ed4b4998570a6d38d79aa47fb09cbd5

doc: add a note on the implementation detail Added a note in case people would think that the Button would behave 100% like a native control, but find out it is simply a stylized Touchable https://github.com/facebook/react-native/blob/ef6ad1f2d65639a1d41e05a895ad21ce97192749/Libraries/Components/Button.js#L342-L351 I didn't add the link to the specific source lines as I thought that would be TIM.

view details

push time in 14 days

fork trajano/react-native-website

Configuration and documentation powering the React Native website.

https://reactnative.dev/

fork in 14 days

issue closedGeekyAnts/NativeBase

Setting fonts.body prevents making ad-hoc font family changes on Text

Describe the bug

Following Customizing fonts. When setting fonts.body the fonts.heading value is ignored and the fonts.body value is used in the Heading.

To Reproduce Steps to reproduce the behaviour:

I have the following fontConfig.


{
  "Philosopher": {
    "400": {
      "normal": "Philosopher_400Regular",
      "italic": "Philosopher_400Regular_Italic"
    },
    "700": {
      "normal": "Philosopher_700Bold",
      "italic": "Philosopher_700Bold_Italic"
    }
  },
  "Nunito": {
    "200": {
      "normal": "Nunito_200ExtraLight",
      "italic": "Nunito_200ExtraLight_Italic"
    },
    "300": {
      "normal": "Nunito_300Light",
      "italic": "Nunito_300Light_Italic"
    },
    "400": {
      "normal": "Nunito_400Regular",
      "italic": "Nunito_400Regular_Italic"
    },
    "600": {
      "normal": "Nunito_600SemiBold",
      "italic": "Nunito_600SemiBold_Italic"
    },
    "700": {
      "normal": "Nunito_700Bold",
      "italic": "Nunito_700Bold_Italic"
    },
    "800": {
      "normal": "Nunito_800ExtraBold",
      "italic": "Nunito_800ExtraBold_Italic"
    },
    "900": {
      "normal": "Nunito_900Black",
      "italic": "Nunito_900Black_Italic"
    }
  }
}
  const nativeBaseTheme = extendTheme({
    fontConfig: devhausFontConfig,
    fonts: {
      body: 'Nunito',
      heading: 'Philosopher',
    },
  })

Expected behaviour

I expect that the text is displayed in the proper fonts.

CodeSandBox/Snack link

Screenshots

when body is set

image

when body is not set

image

Platform

  • NativeBase version: 3.1.0
  • Device: iPad Mini 4
  • OS: iOS 14
  • Expo sdk version : 42

closed time in 14 days

trajano