Skip to content

Commit

Permalink
Added React360 (#772)
Browse files Browse the repository at this point in the history
  • Loading branch information
SentinelWarren committed Jul 20, 2020
1 parent ed560ee commit 93b7a2d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -8,7 +8,7 @@ Thanks to everyone who continues to contribute; new languages are created every
Make sure to see [CONTRIBUTING.md](/CONTRIBUTING.md) for instructions on contributing to the project!

<!--Languages start-->
## Languages (667 total)
## Languages (668 total)

* [05Ab1E](%23/05AB1E)
* [0815](%23/0815.0815)
Expand Down Expand Up @@ -508,6 +508,7 @@ Make sure to see [CONTRIBUTING.md](/CONTRIBUTING.md) for instructions on contrib
* [Radixal](r/radixal.radixal)
* [Ratfor](r/ratfor.ratfor)
* [React](r/react.js)
* [React360](r/react360.js)
* [Readlink](r/readlink.readlink)
* [Realbasic](r/realbasic.realbasic)
* [Reason](r/reason.re)
Expand Down
36 changes: 36 additions & 0 deletions r/react360.js
@@ -0,0 +1,36 @@
import React from "react";
import { AppRegistry, Text, View, StyleSheet } from "react-360";

export default class hello_world extends React.Component {
render() {
return (
<View style={styles.panel}>
<View style={styles.greetingBox}>
<Text style={styles.greeting}>Hello World</Text>
</View>
</View>
);
}
}

const styles = StyleSheet.create({
panel: {
// Fill the entire surface
width: 1000,
height: 600,
backgroundColor: "rgba(255, 255, 255, 0.4)",
justifyContent: "center",
alignItems: "center",
},
greetingBox: {
padding: 20,
backgroundColor: "#000000",
borderColor: "#639dda",
borderWidth: 2,
},
greeting: {
fontSize: 30,
},
});

AppRegistry.registerComponent("hello_world", () => hello_world);

0 comments on commit 93b7a2d

Please sign in to comment.