andrenerd / react-native-bootstrap-styles Goto Github PK
View Code? Open in Web Editor NEWBootstrap style library for React Native
Bootstrap style library for React Native
I love this library! Seems like the perfect solution to dynamically updating stylesheets on React Native Web, something that seems to be sorely missing.
One question I have is - how do I create media queries inside the stylesheet?
Can you provide some more feature like Carousel, Pagination, Jumbotron, Navbar, Sidebar menu, Collapse, Dropdown, input group, etc?
so i just install your library and not the other, i don't like nativebase actually
i want your library be the best.
Thank you for your time.
TypeError: Cannot assign to read only property 'exports' of object '#'
Module.
node_modules/react-native-bootstrap-styles/index.js:2
1 | import BootstrapStyleSheet from './src/';
2 | module.exports = BootstrapStyleSheet;
package.json includes:
"@react-navigation/native": "^5.1.1",
"react-native-bootstrap-styles": "0.0.9",
node -v: v12.16.1
npm -v: 6.13.4
expo --version: 3.15.5
Hi, i am getting the follwing error after a brand new project installation with expo init:
Module not found: Can't resolve '@babel/runtime/helpers/classCallCheck' in '..\node_modules\react-native-bootstrap-styles\src'
Module RCTEventEmitter is not a registered callable module (calling receiveTouches)
__callFunction
index.delta?platform=android&dev=true&minify=false:2479:18
index.delta?platform=android&dev=true&minify=false:2238:31
__guard
index.delta?platform=android&dev=true&minify=false:2435:15
callFunctionReturnFlushedQueue
index.delta?platform=android&dev=true&minify=false:2237:21
and
'styles' is read-only
both roor is showing for me its not working
this is my react version
react-native-cli: 2.0.1
react-native: 0.58.5
this is my code
import React, {Component} from 'react';
import {AppRegistry, StyleSheet, Text, View, Image, ScrollView,FlatList,Divider,TouchableHighlight} from 'react-native';
import BootstrapStyleSheet from 'react-native-bootstrap-styles';
import Header from './Header';
const
REM = BootstrapStyleSheet.DIMENSIONS_WIDTH < 360 ? 14 : 16,
BODY_COLOR = '#22',
TEXT_MUTED = '#888888';
// custom constants
const constants = {
REM,
BODY_COLOR, TEXT_MUTED,
};
// custom classes
let classes = {
title: {
color: 'red',
}
};
const bootstrapStyleSheet = new BootstrapStyleSheet(constants, classes);
const s = styles = bootstrapStyleSheet.create();
const c = constants = bootstrapStyleSheet.constants;
type Props = {};
export default class menus extends Component {
static navigationOptions = {
header: null
}
constructor(){
super();
this.state={
dataSource: [
{name: 'Menus', image: '../img/coffie.png','description':'Menus short description here'}
],
}
}
_onPressButton=()=>{
alert('hello');
}
render() {
return (
<ScrollView style={{ backgroundColor:'#ffffff',}}>
</ScrollView>
);
}
}
const styles = StyleSheet.create({
});
AppRegistry.registerComponent('menus', () => menus);
Very interesting project, thank you for open sourcing!
I noticed many similarities between this project and react-native-style-tachyons
and I was wondering if maybe it would make sense to adopt a more class-based approach https://github.com/tachyons-css/react-native-style-tachyons#3-or-even-simpler
I wonder if you are using this lib in any apps, and how your experience is?
Hello, is this library get update? Because some of the components doesn’t seem to work as i expected. Let me know if you’re not continuing this library. Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.