react-native-global-props icon indicating copy to clipboard operation
react-native-global-props copied to clipboard

A simple javascript implementation to add custom, default props to react-native components.

Results 13 react-native-global-props issues
Sort by recently updated
recently updated
newest added

Also available via [@types/react-native-global-props](https://www.npmjs.com/package/@types/react-native-global-props).

``` const customTextProps = { style: { fontFamily: 'Nunito Sans' } }; setCustomText(customTextProps); ``` When using the Inspector, the Text component's fontFamily still shows up as `System`. Apparently, react-native automatically...

Hello there! Is it possibile to merge any other styles while keeping the default ones? would be amazing.

Hey, I'm wondering if I can customize some underlying react-native components such as `Image` or `Text` by using an approach similar to this library. Ideally I would like to do...

新版本写法 export const setCustomText = customProps => { const TextRender = Text.render const initialDefaultProps = Text.defaultProps Text.defaultProps = { ...initialDefaultProps, ...customProps } Text.render = function render(props, ref) { let oldProps...

Hello, I did: ``` import { setCustomTextInput } from "react-native-global-props"; const customTextInputProps = { style: { //fontFamily: theme.fontFamily.regular, //color: theme.colors.text, backgroundColor: "#E0E7FF33", borderColor: "#E0E7FF", borderRadius: 5, borderWidth: 1, marginVertical: 5,...

This package needs some Typescript love :) Willing to accept a PR?

This project lacks some tests to verify the functionality. Do you have any plans to add tests or would accept a PR? Case in point: ```js export const setCustomText =...

Hey @Ajackster , First I wanted to thank you for building this, it has allowed me to save a lot of time building an app for my company and it...