https://github.com/softmotions/einstein-mobile
https://github.com/softmotions/einstein-mobile
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/softmotions/einstein-mobile
- Owner: Softmotions
- License: apache-2.0
- Created: 2017-02-13T05:55:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-05T11:24:05.000Z (over 1 year ago)
- Last Synced: 2024-04-13T07:35:15.684Z (over 1 year ago)
- Language: JavaScript
- Size: 3.85 MB
- Stars: 2
- Watchers: 7
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Einstein mobile
Its a cross-platform mobile version of einstein game. For IOS and Android, based on react-native.
   
Use your brain to discover tiles. Based on the famous puzzle game contains nothing extra, pure logic - only symbols and rules. One wrong move and you fail, get smart and solve the puzzle.
[](https://play.google.com/store/apps/details?id=com.softmotions.einstein&hl=en) [](https://apps.apple.com/us/app/id1335910358)
## Building and install
* Install packages `yarn` or `npm install`
* Start react dev server `react-native start`
* Run on device or emulator `react-native run-android` or `react-native run-ios`Created native module with:
`react-native-create-library --prefix '' --module-prefix softmotions-einstein --package-identifier com.softmotions.einstein.modules --platforms ios,android native_module`Now native apps can be regenerated (for future RN updates) with:
`npm run native:gen`! Dont forget to install splash screen
https://github.com/crazycodeboy/react-native-splash-screen! Dont forget to install gif support
https://facebook.github.io/react-native/docs/image.html#gif-and-webp-support-on-android! Dont forget to enable fullscreen mode, insert this to com.softmotions.einstein.MainActivity:
```java
...import android.view.WindowManager;
...
public class MainActivity extends ReactActivity {
...
@Override
protected void onCreate(Bundle savedInstanceState) {
...
runOnUiThread(new Runnable() {
@Override
public void run() {
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
}
});
...
}
...
}
```! Dont forget to update AndroidManifest, like this:
```xml
```
! Dont forget to update version code and name
And use this guide to sign app for GP, reduce file size and etc:
https://facebook.github.io/react-native/docs/signed-apk-android