Comments (18)
@emprecario I liked your approach and thank you for sharing it. However, in the end I used a different solution:
react-native-ui-lib+7.21.2.patch:
diff --git a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] b/node_modules/react-native-ui-lib/src/assets/icons/[email protected]
deleted file mode 100644
index 902f55c..0000000
Binary files a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] and /dev/null differ
diff --git a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] b/node_modules/react-native-ui-lib/src/assets/icons/[email protected]
deleted file mode 100644
index 8346c27..0000000
Binary files a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] and /dev/null differ
diff --git a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] b/node_modules/react-native-ui-lib/src/assets/icons/[email protected]
deleted file mode 100644
index c43c034..0000000
Binary files a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] and /dev/null differ
diff --git a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] b/node_modules/react-native-ui-lib/src/assets/icons/[email protected]
deleted file mode 100644
index 5495134..0000000
Binary files a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] and /dev/null differ
diff --git a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] b/node_modules/react-native-ui-lib/src/assets/icons/[email protected]
deleted file mode 100644
index a1b0d0e..0000000
Binary files a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] and /dev/null differ
diff --git a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] b/node_modules/react-native-ui-lib/src/assets/icons/[email protected]
deleted file mode 100644
index 62ef8d1..0000000
Binary files a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] and /dev/null differ
diff --git a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] b/node_modules/react-native-ui-lib/src/assets/icons/[email protected]
deleted file mode 100644
index f9b22af..0000000
Binary files a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] and /dev/null differ
diff --git a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] b/node_modules/react-native-ui-lib/src/assets/icons/[email protected]
deleted file mode 100644
index 1288bb4..0000000
Binary files a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] and /dev/null differ
diff --git a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] b/node_modules/react-native-ui-lib/src/assets/icons/[email protected]
deleted file mode 100644
index ebc5f85..0000000
Binary files a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] and /dev/null differ
diff --git a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] b/node_modules/react-native-ui-lib/src/assets/icons/[email protected]
deleted file mode 100644
index 2dd5199..0000000
Binary files a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] and /dev/null differ
Basically, I deleted all the assets with prefixes @4x and @1.5x
from react-native-ui-lib.
![Captura de pantalla 2024-05-09 a las 18 50 43](https://private-user-images.githubusercontent.com/81963650/329321386-dcda8cb9-1e4c-4fcd-a017-33b5160d999a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTcyNTY0ODcsIm5iZiI6MTcxNzI1NjE4NywicGF0aCI6Ii84MTk2MzY1MC8zMjkzMjEzODYtZGNkYThjYjktMWU0Yy00ZmNkLWEwMTctMzNiNTE2MGQ5OTlhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjAxVDE1MzYyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY3MzY5NWU3YmEwMTg5MWUwZjZkNDljOTAzZmJhNDc3NThiNGU4ZmJjMjFjOWVkMmU3Nzk1ODdmMzliZTMxNmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.bogO-2Ld_yXB4hQKay2NWv_7XtzszFrcUawoJy4kn2s)
from react-native-ui-lib.
Same here, but in Expo doesn't appear the button either
from react-native-ui-lib.
Same problem
- "react-native-ui-lib": "^7.20.3"
- "react-native": "0.73.6"
- "expo": "^50.0.0"
- "react-native-svg": "14.1.0"
- "react-native-svg-transformer": "^1.3.0"
from react-native-ui-lib.
@JSantangelo-Octopus Were you able to find a solution to this?
from react-native-ui-lib.
Hi , @mcalero11 !! I modified the library component with patch-package to support a prop called renderHeader, and from my project I put icons with expo-icons. `diff --git a/node_modules/react-native-ui-lib/src/components/dateTimePicker/index.js b/node_modules/react-native-ui-lib/src/components/dateTimePicker/index.js
index 5518e3a..018638e 100644
--- a/node_modules/react-native-ui-lib/src/components/dateTimePicker/index.js
+++ b/node_modules/react-native-ui-lib/src/components/dateTimePicker/index.js
@@ -43,6 +43,7 @@ const DateTimePicker = forwardRef((props, ref) => {
headerStyle,
testID,
display = Constants.isIOS ? 'spinner' : undefined,
-
renderHeader: _renderHeader,
...others
} = props;
const [value, setValue] = useState(propsValue);
@@ -118,6 +119,13 @@ const DateTimePicker = forwardRef((props, ref) => {
}
}, [onDonePressed, toggleExpandableOverlay]);
const renderHeader = () => { -
if (_renderHeader) {
-
return _renderHeader({
-
toggleExpandableOverlay,
-
onDonePressed
-
});
-
}
-
return <View row spread bg-$backgroundDefault paddingH-20 style={[styles.header, headerStyle]} testID={
${testID}.header
}>
<Button link iconSource={Assets.icons.x} iconStyle={{
tintColor: Colors.$iconDefault`----> Component
<DateTimePicker renderHeader={DatePickerHeader} themeVariant="light" renderInput={({value}) => ( <> <TextInput color={Colors.white} readonly value={value} trailingAccessory={dropdownIcon} placeholder="Fecha de concierto" /> </> )} {...field} />
from react-native-ui-lib.
@emprecario I will create the patch, I hope it works
from react-native-ui-lib.
@mcalero11 Here you have my DatePickerHeader component:
![Captura de pantalla 2024-05-09 a las 19 06 16](https://private-user-images.githubusercontent.com/81963650/329325395-d382eafd-d0f8-44a5-abf0-9678a59fd79e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTcyNTY0ODcsIm5iZiI6MTcxNzI1NjE4NywicGF0aCI6Ii84MTk2MzY1MC8zMjkzMjUzOTUtZDM4MmVhZmQtZDBmOC00NGE1LWFiZjAtOTY3OGE1OWZkNzllLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjAxVDE1MzYyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgxZTcxOWQxMzdkMDZiNGU3ODk0ZDYyYTkxODBjMDhlNWE1OWRjMzAxOTNiZGE5OTE2Y2FkZDM4MmE2NjFkOTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.y8wI7-pEAM-57YZg5yav5gDlb7H8CWuY-DwNvp4Rr7U)
from react-native-ui-lib.
@JSantangelo-Octopus Were you able to find a solution to this?
Hi! Nope, i was working in another project. I will try your patch, thanks!
from react-native-ui-lib.
Hi! I'm interested in this conversation, having the same issue.
@JSantangelo-Octopus did you apply any workaround which works for you?
from react-native-ui-lib.
So I used @mcalero11 's method and it's working. On my end it was enough to remove only these files:
- node_modules/react-native-ui-lib/src/assets/icons/[email protected]
- node_modules/react-native-ui-lib/src/assets/icons/[email protected]
- node_modules/react-native-ui-lib/src/assets/icons/[email protected]
- node_modules/react-native-ui-lib/src/assets/icons/[email protected]
Here's the patch source:
Filename: react-native-ui-lib+7.23.2.patch
diff --git a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] b/node_modules/react-native-ui-lib/src/assets/icons/[email protected]
deleted file mode 100644
index 902f55c..0000000
Binary files a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] and /dev/null differ
diff --git a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] b/node_modules/react-native-ui-lib/src/assets/icons/[email protected]
deleted file mode 100644
index 8346c27..0000000
Binary files a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] and /dev/null differ
diff --git a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] b/node_modules/react-native-ui-lib/src/assets/icons/[email protected]
deleted file mode 100644
index c43c034..0000000
Binary files a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] and /dev/null differ
diff --git a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] b/node_modules/react-native-ui-lib/src/assets/icons/[email protected]
deleted file mode 100644
index 5495134..0000000
Binary files a/node_modules/react-native-ui-lib/src/assets/icons/[email protected] and /dev/null differ
"react-native-ui-lib": "^7.23.2"
from react-native-ui-lib.
Related Issues (20)
- error: Error: Cannot resolve ./src/components/textField/TextFieldMigrator after upgrading to 7.11 or higher HOT 3
- Issue with the lazy attribute in a TabController.TabPage component HOT 2
- [Workaround available] TabController.TabBar crashes on press on iOS w/ RN-Gesture-Handler 2.15.0 HOT 1
- Missing default check Icon in checkmark after build HOT 1
- Wheelpicker performance issues
- Cannot read property 'Part' of undefined
- If I do not change the position of the separators and set separatorsStyle={{backgroundColor:'green',}}, the text will be obscured. HOT 1
- SegmentedControl UI Issues HOT 3
- Cannot read property 'KeyboardTrackingScrollBehaviorNone' of null - NativeModules
- KeyboardAccessoryView component changing size causes it vanish on iOS
- Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead. HOT 6
- Image picker is immediately closed after dismissing the action sheeting
- KeyboardRegistry and KeyboardAccessoryView do not work with recent react-native 0.74.1 HOT 6
- TextField error on web: "Function components cannot be given refs. [...]"
- Invariant Violation: requireNativeComponent: "HighlighterView" was not found in the UIManager. HOT 2
- 404 Error from Docs TextField Link
- useSafeArea is not working on Android
- Picker prop 'migrate' warning despite not using it. HOT 1
- Can't set the picker's modal background color.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-ui-lib.